Rename or move a file
update_drive_fileRenames, recolors or moves a file or folder, within its drive or (files only) to another drive.
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": {
"workspace": "<workspace>",
"fileId": "<fileId>"
},
"name": "update_drive_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| color | No | ||
| fileId | Yes | File or folder id from list_drive_files, search or fetch. | |
| driveId | No | Move it to this drive. | |
| parentId | No | Move it into this folder; null for the drive's top level. | |
| workspace | Yes | Workspace slug from workspaces.list, e.g. "acme". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes |