query_notes
Filter notes by frontmatter properties, tags, folders, modified time, or size, returning compact rows like path and title. Use this instead of text search when querying metadata rather than 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, case-insensitive; nested child tags match ("project" matches project/alpha). | |
| 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. |