Create or Edit Google Doc with Advanced Editing Modes
create_docCreate or edit Google Docs with support for multiple formats (Markdown, HTML, RTF, DOCX, LaTeX) and editing modes (replace_all, insert_at_line, regex_replace, append).
Instructions
Create a new Google Doc or edit an existing one with support for multiple content formats and advanced editing modes. Supports replace_all, insert_at_line, regex_replace, and append modes via edit_config parameter. Accepts plain text, Markdown, HTML, RTF, DOCX, LaTeX formats with automatic detection. Returns structured response with document metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| content | No | ||
| document_id | No | ||
| edit_config | No | ||
| content_mime_type | No | ||
| 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 |
|---|---|---|---|
| docId | Yes | ||
| error | No | ||
| docName | Yes | ||
| message | Yes | ||
| success | Yes | ||
| mimeType | Yes | ||
| userEmail | Yes | ||
| webViewLink | Yes | ||
| contentLength | No | ||
| hasFormatting | No | ||
| uploadMimeType | Yes | ||
| sourceContentType | Yes |