renameFile
Renames or moves files and directories in the workspace using VS Code when connected, with native file system fallback.
Instructions
Rename or move workspace file/directory. Uses VS Code when connected, native fs fallback.
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": {
"oldPath": "<oldPath>",
"newPath": "<newPath>"
},
"name": "renameFile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newPath | Yes | New absolute or workspace-relative path | |
| oldPath | Yes | Current absolute or workspace-relative path | |
| overwrite | No | Overwrite if target already exists (default: false) |