create_file
Uploads a file to Google Drive with a name, MIME type, and text or base64 content. Omit parent ID to save it in My Drive root.
Instructions
Upload a file. Pass content as text_content (UTF-8 string) OR base64_content (for binary). If parent_id omitted, file lands in My Drive root.
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>",
"mime_type": "<mime_type>"
},
"name": "create_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| mime_type | Yes | e.g. text/plain, image/jpeg, application/pdf | |
| parent_id | No | ||
| text_content | No | ||
| base64_content | No |