Rename or move a file
files_renameRename or MOVE a file or directory: from and to are paths relative to root, and may point into different directories. To move several items into a folder in one call, use files.move.
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": {
"id": "<id>",
"root": "<root>",
"from": "<from>",
"to": "<to>"
},
"name": "files_rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| to | Yes | New path, e.g. 'main.py' to move it to the root. | |
| from | Yes | Current path, e.g. 'app/main.py'. | |
| root | Yes | Directory both paths are relative to. Default '/'. | / |