upload_binary_file
Upload binary files to Google Drive by providing name, base64-encoded content, MIME type, and optional parent folder ID.
Instructions
Upload a binary file to Google Drive using base64-encoded content.
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": {
"name": "<name>",
"content_base64": "<content_base64>",
"mime_type": "<mime_type>"
},
"name": "upload_binary_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the file in Google Drive. | |
| mime_type | Yes | MIME type of the file (e.g., 'image/png', 'application/pdf'). | |
| parent_id | No | ID of the parent folder. If not provided, uploads to root. | |
| content_base64 | Yes | Base64-encoded binary content of the file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |