Create Drive File
create_drive_fileCreate Google Drive files from direct content or a URL. Set file name, folder, and MIME type.
Instructions
Create a new file in Google Drive from content or URL
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | Direct content for the file (optional) | |
| fileUrl | No | URL to fetch file content from (optional) | |
| file_name | Yes | Name for the new file | |
| folder_id | No | Parent folder ID (default: 'root') | root |
| mime_type | No | MIME type of the file (default: 'text/plain') | text/plain |
| user_google_email | No | Use 'me' or 'myself' for auto-resolution to authenticated user, or provide specific email address. If None, uses current authenticated user (auto-injected by middleware). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| fileId | Yes | ||
| message | Yes | ||
| success | Yes | ||
| fileName | Yes | ||
| folderId | Yes | ||
| mimeType | Yes | ||
| userEmail | Yes | ||
| webViewLink | Yes |