search-notes
Finds notes by title or body keyword and returns matching note IDs for follow-up read, update, delete, or move operations.
Instructions
Use when: finding notes by a keyword in the title (or body with searchContent=true) and you need their ids.
Returns: matching notes with title, folder, and id; source says whether a body search read the Notes database or fell back to AppleScript. When the note text came from the database, each result has matchedIn (title, body, or both); includeWordCount adds wordCount.
Do not use when: you already have a note id (use get-note-content), want every note (use list-notes), or need boolean or metadata filters (use query-notes).
Prefer this first to obtain ids for subsequent read/update/delete/move calls.
Note: with Full Disk Access, body search reads the Notes database (fast; the most recent 5000 notes, Recently Deleted excluded); without it, it falls back to AppleScript, which scans every body and can time out on broad terms.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search-notes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return. Defaults to 50 — a broad query reads several properties per match via AppleScript, so an unbounded search can time out. Pass a higher value to see more; the applied limit is disclosed in the response. | |
| query | Yes | ||
| folder | No | Limit search to a specific folder | |
| account | No | Account to search in | |
| modifiedSince | No | ISO 8601 date string to filter notes modified on or after this date (e.g., '2025-01-01'). Useful for searching only recent notes in large collections. | |
| searchContent | No | Search note content (title line included) instead of titles. Uses the Notes database when Full Disk Access is available, else AppleScript | |
| includeWordCount | No | Add wordCount to each result (null when locked or unreadable). A database body search already has the text; otherwise the bodies are read in one batched read-only database query (needs Full Disk Access), which also adds matchedIn |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| notes | No | ||
| source | No | ||
| scanTruncated | No | ||
| wordCountUnavailable | No |