Create/upload Drive file
google_drive_uploadUpload files to Google Drive by name and MIME type. Include text content or a local file path to create documents, images, or other files in a specified folder.
Instructions
Create a file in Drive, optionally with text content (blank Google-native file if omitted) or by local file path (binary-safe).
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>",
"mimeType": "<mimeType>"
},
"name": "google_drive_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | File name. | |
| path | No | Local file path to upload (reads raw bytes from disk; use instead of content). | |
| account | No | Account nickname to use. | |
| content | No | Text content to upload. | |
| mimeType | Yes | MIME type (e.g. text/plain, image/png, application/vnd.google-apps.document). | |
| parentFolderId | No | Parent folder ID. |