upload_file_to_drive
Upload files to Google Drive by converting base64-encoded data into documents, spreadsheets, or other file types with specified names and formats.
Instructions
Upload a file to Google Drive from base64-encoded data.
Accepts file data in base64 format and uploads it to Google Drive. Supports any file type. Returns the file ID and web link.
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_data": "<file_data>",
"name": "<name>",
"mime_type": "<mime_type>"
},
"name": "upload_file_to_drive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_data | Yes | Base64-encoded file data | |
| name | Yes | Name for the file in Drive | |
| mime_type | Yes | MIME type of the file (e.g., 'application/pdf', 'text/plain') | |
| parent_folder_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |