update_file
Update a file's name, folder, star status, or trash state in one call, changing only the fields you specify.
Instructions
Rename, move, star/unstar, trash/restore a file in one call. Pass only the fields you want to change.
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": {
"id": "<id>"
},
"name": "update_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | No | ||
| starred | No | ||
| trashed | No | true = move to trash, false = restore from trash. | |
| parentFolderId | No | null moves to root. |