@@ -105,7 +105,7 @@ Return ONLY the JSON object - no explanations, no markdown, no extra text.`,
105105 condition : { field : 'operation' , value : 'list_documents' } ,
106106 } ,
107107 {
108- id : 'cursor ' ,
108+ id : 'pageCursor ' ,
109109 title : 'Cursor' ,
110110 type : 'short-input' ,
111111 mode : 'advanced' ,
@@ -144,6 +144,15 @@ Return ONLY the JSON object - no explanations, no markdown, no extra text.`,
144144 throw new Error ( `Invalid Convex operation: ${ params . operation } ` )
145145 }
146146 } ,
147+ params : ( params ) => {
148+ const { pageCursor, ...rest } = params
149+
150+ if ( params . operation === 'list_documents' ) {
151+ rest . cursor = pageCursor
152+ }
153+
154+ return rest
155+ } ,
147156 } ,
148157 } ,
149158 inputs : {
@@ -153,8 +162,9 @@ Return ONLY the JSON object - no explanations, no markdown, no extra text.`,
153162 functionPath : { type : 'string' , description : 'Function path (e.g., messages:list)' } ,
154163 args : { type : 'json' , description : 'Named arguments for the function' } ,
155164 tableName : { type : 'string' , description : 'Table to read from (empty for all tables)' } ,
156- snapshot : { type : 'string' , description : 'Snapshot timestamp for pagination' } ,
157- cursor : { type : 'string' , description : 'Pagination cursor' } ,
165+ snapshot : { type : 'string' , description : 'Snapshot timestamp for List Documents pagination' } ,
166+ cursor : { type : 'string' , description : 'Timestamp cursor for Document Deltas' } ,
167+ pageCursor : { type : 'string' , description : 'Pagination cursor for List Documents' } ,
158168 } ,
159169 outputs : {
160170 value : {
0 commit comments