Skip to content

Commit 3cb41c9

Browse files
committed
fix(dropbox): wire cursor pagination for List Shared Links in the block
The dropbox_list_shared_links tool already accepted a cursor param, but the block never exposed it, so a workflow couldn't page past the first batch when hasMore was true. Adds an advanced-mode cursor subBlock + input entry, mirroring List Revisions' beforeRev field added in the same PR.
1 parent e00b2d8 commit 3cb41c9

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

apps/sim/blocks/blocks/dropbox.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,14 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
317317
condition: { field: 'operation', value: 'dropbox_list_shared_links' },
318318
mode: 'advanced',
319319
},
320+
{
321+
id: 'cursor',
322+
title: 'Cursor',
323+
type: 'short-input',
324+
placeholder: 'Cursor from a previous call, to fetch the next page',
325+
condition: { field: 'operation', value: 'dropbox_list_shared_links' },
326+
mode: 'advanced',
327+
},
320328
// List revisions operation inputs
321329
{
322330
id: 'path',
@@ -450,6 +458,7 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
450458
maxResults: { type: 'number', description: 'Maximum search results' },
451459
// List shared links inputs
452460
directOnly: { type: 'boolean', description: 'Only return direct links, not parent folders' },
461+
cursor: { type: 'string', description: 'Fetch the next page of shared links (pagination)' },
453462
// List revisions input
454463
beforeRev: { type: 'string', description: 'Fetch revisions before this one (pagination)' },
455464
// Restore input

0 commit comments

Comments
 (0)