transfer_ownership
Transfer ownership of a Google Drive file or folder to another user by email, returning the new permission ID and notifying the recipient.
Instructions
Transfer ownership of a file or folder to another user.
Args: file_id: The Google Drive file or folder ID. new_owner_email: Email address of the new owner. send_notification: Whether to send a notification email to the new owner. Defaults to True, and must stay True: Drive refuses any ownership transfer whose notification is disabled.
Returns: Confirmation with fileId, new_owner, and permissionId. {"error": ...} if send_notification is False, before any API call.
Note: Requires OAuth auth — service accounts have no personal Drive identity to transfer ownership to/from, so Drive's API rejects the transfer. Check server://auth-status for your current auth method.
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_owner_email": "<new_owner_email>"
},
"name": "transfer_ownership"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| new_owner_email | Yes | ||
| send_notification | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||