drive_upload_file
Upload local files to Google Drive with optional folder selection, filename, and MIME type settings. Supports multiple accounts.
Instructions
Upload an explicit local file to Google Drive for an account. Uses the narrow drive.file scope.
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": {
"local_file_path": "<local_file_path>"
},
"name": "drive_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional Drive filename. Defaults to the local filename. | |
| account | No | Email or alias (uses active account if omitted) | |
| mime_type | No | Optional MIME type. Defaults to extension-based detection. | |
| local_file_path | Yes | Absolute local path to the file to upload | |
| parent_folder_id_or_url | No | Optional parent Drive folder ID or URL |