sandbox_file_rename
Rename or move a file or directory inside an E2B sandbox by providing the current and new absolute paths.
Instructions
Rename or move a file or directory in a 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": {
"sandboxId": "<sandboxId>",
"oldPath": "<oldPath>",
"newPath": "<newPath>"
},
"name": "sandbox_file_rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sandboxId | Yes | The sandbox ID. | |
| oldPath | Yes | Current absolute path of the file or directory. | |
| newPath | Yes | New absolute path for the file or directory. |