kb_documents_list
Paginated browse of documents in the tenant. Filters: project_slug, group_slugs, archived, include_hidden. Sort: updated_desc (default) | created_desc | title_asc. By default, docs belonging to hidden projects (kb_projects_hide_toggle) are excluded — matches the web /docs default view. Pass include_hidden=true to include them. Hidden does NOT affect kb_documents_search or kb_chunks_retrieve. When project_slug is explicit, the caller named the project so the hidden filter is irrelevant and is bypassed.
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": "kb_documents_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort order (default updated_desc) | |
| limit | No | Page size (default 25, max 100) | |
| offset | No | Pagination offset (default 0) | |
| archived | No | If true, list archived docs only (default false) | |
| group_slugs | No | Restrict to docs in any of these groups | |
| tenant_slug | No | Tenant slug to target. Required when your token grants several workspaces; omit when it grants one. If you omit it with several, the refusal names your default workspace; call kb_tenants_list to see every workspace the token grants. | |
| project_slug | No | Restrict to one project | |
| include_hidden | No | When true, include docs whose project is hidden (kb_projects_hide_toggle). Default false. Ignored when project_slug is supplied — the caller has named the project so the hidden filter is irrelevant. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| total | Yes |