Drive Create File
drive_create_fileCreate a new file in Drive with specified name, content, and type (e.g., 'text/plain', 'application/pdf'). Returns the file ID for future reference.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the new file | |
| content | Yes | Text content of the file | |
| mime_type | Yes | MIME type of the file (e.g., "text/plain", "application/json", "text/html") | |
| parent_folder_id | No | ID of the parent folder (optional, defaults to root) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ID of the newly created file | |
| name | No | Name of the created file | |
| error | No | Error code if connection failed | |
| message | No | Error message with instructions | |
| mimeType | No | MIME type of the created file | |
| webViewLink | No | URL to open file in Google Drive web interface |