drive_rename
Rename a Google Drive file or folder by specifying its name or index and the new name, including extension when needed.
Instructions
Rename a file or folder.
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": {
"new_name": "<new_name>"
},
"name": "drive_rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Exact item name in the current location (or in path). | |
| path | No | Folder holding the item ("/A/B" from My Drive, "A/B" relative); default: current. | |
| index | No | Index from the last drive.list / drive.search. | |
| new_name | Yes | The new name (give the extension too for uploaded files, e.g. "b.txt"). | |
| occurrence | No | Which item when several share the name (0 = first). |