Import to Google Doc
import_to_google_docImport files from Markdown, DOCX, TXT, HTML, RTF, or ODT into Google Docs format. Convert via content, file path, or URL with formatting preservation.
Instructions
Imports a file (Markdown, DOCX, TXT, HTML, RTF, ODT) into Google Docs format with automatic conversion.
Google Drive automatically converts the source file to native Google Docs format, preserving formatting like headings, lists, bold, italic, etc. For batch operations, prefer file_path for files on disk so callers do not need to load full file contents into their context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | No | The user's Google email address. Required. | user@gmail.com |
| file_name | Yes | The name for the new Google Doc (extension will be ignored). | |
| content | No | Text content for text-based formats. Use only for short snippets or content already in memory. | |
| file_path | No | Local file path or file:// URL for any supported format (MD, TXT, HTML, DOCX, ODT, RTF). Appropriate for larger files than content, but file_path may still load the file into memory or perform non-streaming reads. Avoid very large files that could exceed memory or time limits; use streaming/chunked uploads or an alternative API for huge files. | |
| file_url | No | Remote URL to fetch the file from (http/https). | |
| source_format | No | Source format hint ('md', 'markdown', 'docx', 'txt', 'html', 'rtf', 'odt'). Auto-detected from file_name extension if not provided. | |
| folder_id | No | The ID of the parent folder. Defaults to 'root'. | root |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |