ArtieHelp center
Developers · 2 min read

Pagination and versioned reads

Read complete collections and long content using cursors, offsets and version bindings.

Collections and long content return explicit continuation information. Follow the returned cursor or offset while keeping the same version binding to avoid missing or mixing data.

On this page

Overview

Different readers use different continuation fields:

ReaderContinuation
Artisans and task lists/historyreturned nextCursor → input cursor
Files listnextCursor → after (CLI uses its cursor option)
Memory linesUUID nextCursor → afterId
Context, reply, file/artifact textnextOffset → offset, retaining returned sourceVersion
Email bodynextOffset → offset; retain returned sourceVersion when supplied
Task resultContinue each result collection with its own cursor; retain explicit runId
Task detailContinue results and related tasks with resultCursor / relatedCursor

Example continuation:

artie files read FILE_UUID --offset RETURNED_NEXT_OFFSET --source-version RETURNED_SOURCE_VERSION --json
artie artisan message-result MESSAGE_UUID --conversation CONVERSATION_UUID --offset RETURNED_NEXT_OFFSET --source-version RETURNED_SOURCE_VERSION --json
artie context lines /project-notes.md --cursor RETURNED_NEXT_CURSOR --json

Keep sourceVersion fixed until complete:true and nextOffset:null. A changed source can conflict; reread the current version and reconcile rather than joining pages from different versions. Page completion says only that the selected authorized content view was read. It does not mean the task succeeded or every workspace item was enumerated.

Need help with your workspace?

Contact support