docs_list
List documents in a workspace or project, optionally FILTERED by exact criteria and SORTED. Answers "which documents have property X"; use docs_search for "where is X discussed" and docs_tree for the hierarchy.
FILTER VOCABULARY — do not guess it: server_info.filters lists every built-in target with its valid operators, plus the operators per custom-field type; fields_list gives a project's custom fields. Targets are name, workflow, updatedAt, parentId, … for built-ins and cf.KEY for a custom field (cf.priority; the field UUID works too). Filtering by a custom field requires projectId — the same key can name a different field in another project. Built-in targets work across the workspace.
RESPONSE SHAPE: each item carries fields[] only when the filter mentions at least one cf.* target. Resolving custom fields costs a query per page, so a listing that did not ask about them does not pay for them — ask doc_fields_set/docs_get for a specific document's values, or include a cf.* predicate.
THREE RULES THAT PRODUCE WRONG ANSWERS IF IGNORED:
• neq and notIn include documents that have NO value at all. "Status is not Done" returns never-filled documents too — that is set negation, not an oversight. Want "filled in and not Done"? Add a second predicate with isNotEmpty.
• Custom-field values are inherited, not materialized. A document with no stored value takes the field's project default, and each returned value says which it was via inherited. Hence: no stored value + a default set → the document HAS a value and isEmpty does NOT match it; no stored value + no default → isEmpty matches; an explicitly stored empty (null) overrides the default and isEmpty DOES match. false, 0 and "" are values, not emptiness.
• total is the real match count, items is one page. Page on with cursor, or narrow the filter.
Predicates are ANDed. isEmpty/isNotEmpty take no value key at all; every other operator requires one. For public tokens, only published public documents.
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": "docs_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Single sort key. Defaults to name ascending. List-typed custom fields cannot be sorted on. | |
| limit | No | Maximum number of documents to return (default: 50, max: 100) | |
| cursor | No | Pagination cursor (optional) | |
| filters | No | Predicates, ANDed. Max 16. Omit for a plain listing. | |
| projectId | No | UUID of the project to list documents from (optional) | |
| workspaceId | No | Workspace UUID (optional, auto-selected if user has only one workspace) | |
| workspaceAlias | No | Workspace alias (optional, auto-selected if user has only one workspace) |