List Documents
list_documentsBrowse notes and attachments with their paths, titles, and frontmatter—without loading body text. Filter by folder, glob pattern, or frontmatter values to locate documents for later reading or editing.
Instructions
List notes, and optionally attachments, with path, title and frontmatter but no body text.
Use search to find notes by what they say.
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": "list_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Only notes in this folder and its sub-folders, such as `"Journal"`; `""` for top-level notes only; omit for the whole vault. | |
| filters | No | Frontmatter values to match, all of them, such as `{"tags": "craft"}`; any key works, a list field matches when it holds the value, and attachments never match. On an OKF bundle, status (draft, stable or deprecated; stable includes notes with none), stale (`"true"` or `"false"`) and trust_tier (unverified, machine-confirmed or human-reviewed) filter too, and `{"type": null}` matches notes with no type, the untyped_count of stats, never index.md or log.md. | |
| pattern | No | Glob matched against paths, such as `"Journal/*.md"` or `"**/*meeting*.md"`. | |
| include_attachments | No | Also list non-note files, marked kind=`"attachment"` with their mime_type. Default false. | |
| wait_for_pending_writes | No | Wait for recent index writes. On timeout, answer from the current index with _meta.index_stale=true. Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |