rename_document
Rename local documents safely with collision protection and undo tracking, using original path and desired filename to prevent overwrites and enable reversal.
Instructions
Safely rename a document with collision protection and undo tracking.
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": {
"originalPath": "<originalPath>",
"newName": "<newName>"
},
"name": "rename_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newName | Yes | Desired new filename (e.g. '2024-01-01_Invoice.pdf') | |
| originalPath | Yes | Absolute path of the file |