move_file
Move Google Drive files to different folders, with options to remove from original locations or keep in multiple folders simultaneously.
Instructions
Move a file to a different folder in Google Drive.
By default, removes the file from all current parent folders. Set remove_from_current_parents=False to keep the file in multiple locations.
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_parent_folder_id": "<new_parent_folder_id>"
},
"name": "move_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | The ID of the file to move | |
| new_parent_folder_id | Yes | The ID of the destination folder | |
| remove_from_current_parents | No | Whether to remove from current parent folders |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |