moveFile
Moves a Google Drive file or folder to another folder, adding the destination parent by default or removing all current parents when a true move is needed.
Instructions
Moves a file or folder to a different Drive folder. By default adds the new parent while keeping existing parents; set removeFromAllParents=true for a true move.
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": {
"fileId": "<fileId>",
"newParentId": "<newParentId>"
},
"name": "moveFile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | The file or folder ID from a Google Drive URL or a previous tool result. | |
| newParentId | Yes | ID of the destination folder. Use "root" for Drive root. | |
| removeFromAllParents | No | If true, removes from all current parents. If false, adds to new parent while keeping existing parents. |