renameFile
Renames a file or folder in Google Drive and returns updated file info.
Instructions
Renames a file or folder in Google Drive. Returns the updated file info.
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": {
"fileId": "<fileId>",
"newName": "<newName>"
},
"name": "renameFile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | The file or folder ID from a Google Drive URL or a previous tool result. | |
| newName | Yes | New name for the file or folder. |