Search
searchFinds notes. With query: ranked full-text search (words, "quoted phrases", OR, -word), best first, with a snippet. With pattern: like grep, a regular expression (or plain text) matched line by line; output "files" (the matching paths), "content" (matching lines as path:line: text, with context lines) or "count". Names and paths match too. Narrow with path (a folder "Work/", a glob "Work/**/2026*", a note and its sub-notes, an app "Work/Habits.app" to search its code), type, pinned, modified_after/before (YYYY-MM-DD), title_only, sub_notes: false, deleted: true. Pages with limit and offset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Where to look: a folder, a glob, a note, or an app. Default: everywhere. | |
| type | No | Only notes, only app code, or only files (by name). | |
| limit | No | Results per page (default 20; lines with output content: 100). | |
| query | No | Words to find, ranked. | |
| offset | No | Skip this many results (the next page). | |
| output | No | With pattern. Default files. | |
| pinned | No | ||
| context | No | With output content: lines shown before and after each match (0-10). | |
| deleted | No | Include Recently Deleted. Default false. | |
| pattern | No | A regular expression (or plain text) to match line by line, like grep. | |
| sub_notes | No | Include sub-notes. Default true. | |
| title_only | No | Match names, not text. | |
| case_sensitive | No | Default false. | |
| modified_after | No | YYYY-MM-DD. | |
| modified_before | No | YYYY-MM-DD. |