Move or Copy Files
moveRelocate, rename, or copy files and directories within allowed roots; missing parent folders are created automatically.
Instructions
Move, rename, or copy files and directories inside the roots. Use when you need to rename, relocate, or duplicate (copy: true). Do not use to change contents (edit, patch) or remove paths (delete). Missing parents are created. An existing destination asks to confirm; declining cancels the call, skipping drops that pair. Only copies can bypass the prompt (overwrite: true). A directory move never merges into a non-empty directory; a copy merges. Pairs that share a destination or overlap another pair fail; run dependent moves separately. Returns a summary line per pair and failure, plus moves[{ from, to }], failures?, skipped?, and an undo id for undo (30 minutes) or undoUnavailable. The call is an error only if every pair failed.
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": {
"moves": "<moves>"
},
"name": "move"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| copy | No | Copy and leave sources in place instead of moving | |
| moves | Yes | Pairs run independently, with no rollback; a declined overwrite still cancels them all | |
| overwrite | No | Copy only: replace existing destinations without confirmation |