batch-move-notes
Move multiple notes by ID into a single existing folder, with per-ID success or failure counts returned after destination verification.
Instructions
Use when: moving multiple notes by id into one destination folder. Returns: per-id success/failure counts after destination-folder verification. Do not use when: moving a single note (move-note). Safety: optional folder preconditions apply independently to every note, checked live immediately before its move in the same AppleScript; a scope mismatch leaves that note unchanged and other items continue. Each moved note's actual container ID is compared with the destination folder ID before success is reported. The destination folder must already exist (create-folder); a smart folder is refused for the whole call (code unsupported) before any note moves.
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": {
"ids": "<ids>",
"folder": "<folder>"
},
"name": "batch-move-notes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Array of note IDs to move (max 500 per request) | |
| folder | Yes | Destination folder name or nested path (e.g. "Work/Clients"). Must already exist — create-folder first. | |
| account | No | Account containing the destination folder (defaults to Notes.app's default account; exact or unique-prefix match) | |
| ifFolderId | No | Precondition: the note must currently be in exactly this folder (id from list-folders). Re-checked immediately before the write. | |
| ifAncestorFolderId | No | Precondition: the note must be inside this folder or any of its subfolders. Re-checked immediately before the write. | |
| forbiddenAncestorFolderIds | No | Precondition: the note must not be inside any of these folders or their subfolders (for move-note and batch-move-notes, neither may the destination). Re-checked immediately before the write. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| failed | No | ||
| folder | No | ||
| results | No | ||
| succeeded | No |