list-smart-folders
Lists Apple Notes Smart Folders with their decoded rules, filters, stored queries, and optionally the notes currently shown in each folder.
Instructions
Use when: listing Smart Folders and the rules that define them. Returns: each smart folder's name, ids, account, and parent, its rules decoded as match ("all"/"any"/"none") plus filters (each with a readable description), the stored query with the outer deleted wrapper removed, and the raw stored query JSON. With includeMatchingNotes, also the notes Notes.app currently shows in each folder. Do not use when: listing all folders with paths (list-folders, which lists smart folders alongside ordinary ones) or searching notes (search-notes). Safety: read-only; reads the NoteStore database and requires Full Disk Access. includeMatchingNotes asks Notes.app (Automation permission) for each folder's current contents rather than re-evaluating the rules. Unrecognized rules are kept as "unknown" filters and set fullyDecoded false.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list-smart-folders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum matching notes returned per folder (default 50; count is always total) | |
| includeMatchingNotes | No | Also list the notes Notes.app currently shows in each smart folder (default false) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| fullyDecoded | No | ||
| smartFolders | No |