move_note
Move or rename an existing note by copying to a new path and deleting the source, with cleanup on failure. Rejects missing sources or existing destinations and can verify source SHA-256.
Instructions
Move/rename a note via copy+delete (not atomic): the destination is written atomically, then the source is unlinked, and a partial destination is cleaned up on failure. Errors if src is missing or dst exists. Honors expected_sha256 against src. Refreshes updated:.
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": {
"vault": "<vault>",
"src_path": "<src_path>",
"dst_path": "<dst_path>"
},
"name": "move_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vault | Yes | Vault name | |
| dst_path | Yes | New note path (must not exist) | |
| src_path | Yes | Existing note path | |
| expected_sha256 | No | SHA-256 of src from a prior read; rejects stale moves |