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.
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 |