Drive Move File
drive_move_fileMove a Google Drive file or folder to another folder by specifying the destination and current parent folder IDs.
Instructions
Move a Drive file or folder to another folder. Drive allows one parent per file, so a move passes the destination in add_parent_ids and the current parent (from drive_get_file) in remove_parent_ids. To rename use drive_update_file_metadata, and to duplicate use drive_copy_file. Returns status 'ok' and file (id, name, kind, mime_type, size, size_bytes, parent_ids, drive_id, web_url, trashed; null where the change does not report it).
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>"
},
"name": "drive_move_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | Drive file ID: the id field of Drive and search_workspace results, or the long ID in a Drive, Docs, Sheets or Slides URL. | |
| add_parent_ids | No | Destination folder ID (or a shared drive ID for its top level), as a one-element list. | |
| remove_parent_ids | No | Current parent folder ID to take the file out of, from parent_ids in drive_get_file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| status | No | Machine-readable operation status. |