List Documents
list_documentsEnumerate all documents in the vault, with optional folder, pattern, or frontmatter filters and attachment inclusion. Use when you need a complete listing rather than ranked search results.
Instructions
List documents (and optionally attachments) in the vault.
Use this to enumerate documents when you need a complete listing, not ranked search results. For finding documents by content, use 'search'. Does NOT include body content — call 'read' for full text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Return only documents in this folder (e.g. "Journal"). Use folder="" for root-level (top-level) documents only. | |
| filters | No | Frontmatter equality filters, ANDed (e.g. {"tags": "craft"}); any frontmatter key works and list fields match by membership. On an OKF bundle three keys carry OKF semantics: status ("draft"/"stable"/"deprecated"; "stable" also matches notes without a status field), stale ("true"/"false" — stale_after reached), and trust_tier ("unverified"/"machine-confirmed"/"human-reviewed"). Use {"status": "deprecated"} or {"stale": "true"} to build triage listings. Any filter excludes attachments (they carry no frontmatter). | |
| pattern | No | Unix glob matched against relative paths (e.g. "Journal/*.md", "**/*meeting*.md"). | |
| include_attachments | No | When True, also returns non-.md files (PDFs, images, etc.) that match the configured allowlist. Each attachment entry includes kind="attachment" and mime_type. Default False (notes only). | |
| 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 |