Create File
create_fileCreate a new file in Google Drive with direct content or from a URL. Supports shared drives and automatic conversion to Google types.
Instructions
Creates a new file in Google Drive, supporting creation within shared drives. Accepts either direct content or a fileUrl to fetch the content from.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | No | user@gmail.com | |
| title | Yes | The name for the new file. | |
| content | No | If provided, the content to write to the file. Encoding is chosen by mimeType: text/* and application/{json,xml,javascript,yaml,x-yaml} are UTF-8 encoded; everything else is treated as base64 and decoded to raw bytes (use this for xlsx, pptx, pdf, images, and any other binary payload). | |
| parentId | No | The ID of the parent folder. Defaults to 'root'. | root |
| mimeType | No | The MIME type of the source content. Defaults to 'text/plain'. | text/plain |
| fileUrl | No | If provided, fetches the file content from this URL. Supports file://, http://, and https:// protocols. | |
| disableConversionToGoogleType | No | When False (default), source MIME types with a Google-native equivalent are auto-converted (e.g. text/csv → Sheet, text/plain → Doc, docx → Doc). Set to True to store the file as-is. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||