rename_file
Rename a Google Drive file or folder by specifying its file ID and new name, returning the updated file ID, name, and parent folder ID.
Instructions
Rename a file or folder in Google Drive.
Args: file_id: The ID of the file or folder to rename. new_name: The new name.
Returns: Updated fileId, name, and parent folder ID.
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": {
"file_id": "<file_id>",
"new_name": "<new_name>"
},
"name": "rename_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| new_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||