upload_file
Upload text content to Google Drive as a new file. Specify file name, content, and optionally MIME type or parent folder.
Instructions
Upload a new file to Google Drive with the given text 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": "<content>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the file in Google Drive (e.g., 'report.txt'). | |
| content | Yes | Text content of the file to upload. | |
| mime_type | No | MIME type of the file (e.g., 'text/plain', 'application/json'). | text/plain |
| parent_id | No | ID of the parent folder. If not provided, uploads to root. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |