query_notes
Filter and retrieve notes by frontmatter properties, tags, folder, size, or modified time. Returns note paths and titles without content.
Instructions
Structured metadata query — filter notes by frontmatter key/value predicates, tag, folder, modified time, and size. Returns compact rows (path + title by default; opt into more via select), not note content. Use this instead of search when filtering by properties rather than text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Restrict to notes with this tag (# optional). | |
| sort | No | Sort field (default path). | |
| limit | No | Max results (1–500, default 100). | |
| order | No | Sort order (default asc). | |
| where | No | Frontmatter predicates — all must match (AND). | |
| folder | No | Restrict to a vault-relative folder prefix. | |
| select | No | Extra fields per hit: frontmatter keys, or "mtime", "size", "tags". Default returns only path + title. | |
| maxSizeBytes | No | Only notes at most this many bytes. | |
| minSizeBytes | No | Only notes at least this many bytes. | |
| modifiedAfter | No | Only notes modified at or after this ISO 8601 date/time. | |
| modifiedBefore | No | Only notes modified before this ISO 8601 date/time. |