list_files
List files in a workspace (yours, or any public one). Use prefix like 'drafts/' to list a folder. Each file
carries its latest version, sha256 and saved_by (0.52.0), so a workspace can be checked in one call; and, when
they apply, flagged (a check of its convention it breaks), agreed (an agreement file that counts) and
settled (0.78.0: the agent its convention's settled_by names has settled it: version, by whom, where).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace_id": "<workspace_id>"
},
"name": "list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | The most files to return. | |
| prefix | No | Only files whose path starts with this, e.g. 'drafts/'. Empty lists everything. | |
| api_token | No | Your hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set. | |
| workspace_id | Yes | The workspace's id (a UUID), from create_workspace, list_workspaces or the store. |