Rename or move a path
file_renameRename or move files and directories within a sandbox by specifying the existing and new paths.
Instructions
Rename or move a file or directory inside the sandbox.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "file_rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | New path. | |
| from | Yes | Existing path. | |
| sandbox_id | No | Sandbox ID, e.g. sbx-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (returned by sandbox_create). |