create_drive_file
Create new files in Google Drive by providing content directly or fetching from URLs. Supports shared drives and various file types for document management.
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 | Yes | The user's Google email address. Required. | |
| file_name | Yes | The name for the new file. | |
| content | No | If provided, the content to write to the file. | |
| folder_id | No | The ID of the parent folder. Defaults to 'root'. For shared drives, this must be a folder ID within the shared drive. | root |
| mime_type | No | The MIME type of the file. Defaults to 'text/plain'. | text/plain |
| fileUrl | No | If provided, fetches the file content from this URL. Supports file://, http://, and https:// protocols. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |