@@ -165,19 +165,19 @@ export class NoteToolRegistry extends ToolRegistry {
165
165
. describe (
166
166
"The content of the note (supports markdown format)"
167
167
) ,
168
- summary : z
168
+ title : z
169
169
. string ( )
170
170
. optional ( )
171
171
. default ( "" )
172
- . describe ( "An optional short summary or title for the note" )
172
+ . describe ( "An short title or summary for the note" )
173
173
} ,
174
- async ( { questionId, content, summary = "" } ) => {
174
+ async ( { questionId, content, title = "" } ) => {
175
175
try {
176
176
const data = await this . leetcodeService . createUserNote (
177
177
content ,
178
178
"COMMON_QUESTION" ,
179
179
questionId ,
180
- summary
180
+ title
181
181
) ;
182
182
183
183
return {
@@ -210,28 +210,26 @@ export class NoteToolRegistry extends ToolRegistry {
210
210
// Note update tool (CN-specific, requires authentication)
211
211
this . server . tool (
212
212
"update_note" ,
213
- "Updates an existing note with new content or summary , allowing users to refine their saved observations (requires authentication, CN only)" ,
213
+ "Updates an existing note with new content or title , allowing users to refine their saved observations (requires authentication, CN only)" ,
214
214
{
215
215
noteId : z . string ( ) . describe ( "The ID of the note to update" ) ,
216
216
content : z
217
217
. string ( )
218
+ . default ( "" )
218
219
. describe (
219
220
"The new content for the note (supports markdown format)"
220
221
) ,
221
- summary : z
222
+ title : z
222
223
. string ( )
223
- . optional ( )
224
224
. default ( "" )
225
- . describe (
226
- "An optional new short summary or title for the note"
227
- )
225
+ . describe ( "An new short title or summary for the note" )
228
226
} ,
229
- async ( { noteId, content, summary = "" } ) => {
227
+ async ( { noteId, content, title = "" } ) => {
230
228
try {
231
229
const data = await this . leetcodeService . updateUserNote (
232
230
noteId ,
233
231
content ,
234
- summary
232
+ title
235
233
) ;
236
234
237
235
return {
0 commit comments