list-folder-tree
Retrieve each Apple Notes account's full folder hierarchy with nested folders and direct or total note counts in one read.
Instructions
Use when: you need the folder hierarchy with note counts, per account, in one read. Returns: accounts, each with nested folders (id, identifier, name, path, kind folder/smart/trash, noteCount direct, totalNoteCount including subfolders, children) and the account's noteCount. Do not use when: you only need folder paths (list-folders) or notes (list-notes, list-recent-notes). Note: read-only NoteStore access; requires Full Disk Access. includeDeleted adds folders awaiting deletion (markedForDeletion) and folders whose account is gone.
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-folder-tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Only this account (exact or unique-prefix name). Omit for every account. | |
| includeDeleted | No | Include folders marked for deletion (default false) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accounts | No | ||
| folderCount | No |