list_documents
folder_id; read, comment on and export them by document_id as usual.
list_folders
Scope:documents:read (step-up) · Kind: read-only · Annotations: readOnlyHint: true, destructiveHint: false, openWorldHint: false
The folders you can open, as the sidebar shows them. With no arguments: your top-level folders by name.queryfinds folders by name anywhere in the tree, each with itspath.folder_idopens one folder: its path, subfolders, sessions (newest activity first;sessions_cursor→ call again with it ascursorfor more) and how many documents are filed in it. List those documents with list_documentsfolder_id, then read, comment on or export them bydocument_id. Subfolders are not expanded: open each with its ownfolder_id.roleis your access (owner | participant | viewer); a viewer can read but not file documents into the folder.
Parameters
Pass at most one offolder_id and query.
string
Open this folder.
string
Words from the folder name. Matches folders at any depth, only the ones you
can open.
string
With
folder_id: the sessions_cursor from the previous call, for the next
page of the folder’s sessions.number
default:"50"
Folders to return when listing or searching, 1 to 50. Clamped.
Returns
Withoutfolder_id:
object[]
Each
{folder_id, name, role, path, can_nest}. path is the folder’s
ancestors from the top, each {folder_id, name} (empty at the top level).
can_nest says whether it can hold subfolders.boolean
More folders matched than were returned: narrow the
query.folder_id:
object
{folder_id, name, description?, role, path, can_nest}.object[]
Its direct subfolders you can open, same shape as
folders.
subfolders_truncated is true past 200.object[]
Up to 50 sessions filed in the folder, newest activity first, each
{session_id, title, last_activity_at}. sessions_cursor is a string when
more exist.number
Documents and pages filed directly in the folder, counted up to 50;
artifact_count_capped: true means there are more (the text says 50+).