List documents
listDocumentsThe workspace's uploaded documents and folders. An empty prefix lists the top-level folders (invoices, contracts, shipping documents, product documents and any the merchant made); a folder such as 'contract/' lists its files, each with its key, file name and size. For what the documents say use searchDocuments; to read one in full, readDocument with its key.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "listDocuments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | No | Folder prefix to list, e.g. "" for root, "contract/" for contracts | |
| workspaceId | No | The workspace, as listWorkspaces gives it (its id or slug). Leave it out when this connection reaches one workspace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| prefix | Yes | ||
| folders | Yes | ||
| totalFiles | Yes | ||
| totalFolders | Yes |