Import to Google Doc
import_to_google_docConvert Markdown, DOCX, TXT, HTML, RTF, or ODT files into editable Google Docs documents with automatic 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. Binary sources may be passed directly as base64_content. 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 |
|---|---|---|---|
| content | No | Text content for text-based formats. Use only for short snippets or content already in memory. | |
| file_url | No | Remote URL to fetch the file from (http/https). | |
| file_name | Yes | The name for the new Google Doc (extension will be ignored). | |
| 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. | |
| folder_id | No | The ID of the parent folder. Defaults to 'root'. | root |
| base64_sha256 | No | Expected SHA-256 of decoded base64_content. Recommended for binary payload integrity checks. | |
| source_format | No | Source format hint ('md', 'markdown', 'docx', 'txt', 'html', 'rtf', 'odt'). Auto-detected from file_name extension if not provided. | |
| base64_content | No | Standard base64-encoded bytes for a binary source such as DOCX or ODT. | |
| user_google_email | Yes | The user's Google email address. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |