← Back to all apps

Google Docs

Productivityby OpenAI

Google Docs connector: provides simple document operations

3ChatGPT Tools
OpenAIDeveloper
ProductivityCategory

Available Tools

Append Markdown

append_markdown
Full Description

Append markdown content to the end of a document as rich text.

Parameters (2 required)
Required
document_urlstring

Google Docs URL in the format https://docs.google.com/document/d/<DOCUMENT_ID>/... . Do not pass document titles, Drive open?id links, app:// URLs, or /document/create.

markdownstring

Markdown content to append. Supports headings, bold/italic, inline links, lists, and tables.

Append Text

append_text
Full Description

Append text to the end of the document. Markdown is not supported. Use update_text_style to style the text.

Parameters (2 required)
Required
document_urlstring

Google Docs URL in the format https://docs.google.com/document/d/<DOCUMENT_ID>/... . Do not pass document titles, Drive open?id links, app:// URLs, or /document/create.

textstring

Plain text to append at the end of the document. For markdown formatting, use append_markdown.

Create Document

create_document
Full Description

Create a new Google Doc.

Parameters (1 required)
Required
titlestring

Title for the new document. This action accepts only `title`; do not pass tabId or tabs fields.

Export

export
Full Description

Export the document contents as a base64-encoded file.

Parameters (1 required, 1 optional)
Required
document_urlstring

Google Docs URL in the format https://docs.google.com/document/d/<DOCUMENT_ID>/... . Do not pass document titles, Drive open?id links, app:// URLs, or /document/create.

Optional
mime_typestring

Export MIME type, including, but not limited to: application/pdf, application/vnd.openxmlformats-officedocument.wordprocessingml.document, text/markdown, text/plain, text/csv

Default: application/pdf

Get Document

get_document
Parameters (1 required, 1 optional)
Required
document_urlstring

Google Docs URL in the format https://docs.google.com/document/d/<DOCUMENT_ID>/... . Do not pass document titles, Drive open?id links, app:// URLs, or /document/create.

Optional
include_tabs_contentboolean

If true, include content across all tabs in the response tabs field.

Default: False

Get Profile

get_profile

Insert Image

insert_image
Parameters (3 required)
Required
document_urlstring

Google Docs URL in the format https://docs.google.com/document/d/<DOCUMENT_ID>/... . Do not pass document titles, Drive open?id links, app:// URLs, or /document/create.

image_urlstring

Publicly reachable image URL starting with http:// or https://. The URL must be fetchable by Google Docs.

indexinteger

Index to insert the image at. Must be within segment bounds and less than segment endIndex. Use null to append at document end.

Insert Text

insert_text
Full Description

Insert text at a specific index in the document. Markdown is not supported. Use update_text_style to style the text.

Parameters (3 required)
Required
document_urlstring

Google Docs URL in the format https://docs.google.com/document/d/<DOCUMENT_ID>/... . Do not pass document titles, Drive open?id links, app:// URLs, or /document/create.

indexinteger

Insertion index in Docs structural indices. Must be within the segment and strictly less than segment endIndex. For writing at document end, use append_text.

textstring

Plain text to insert. Markdown is not parsed by this tool.

Replace Text

replace_text
Parameters (3 required)
Required
document_urlstring

Google Docs URL in the format https://docs.google.com/document/d/<DOCUMENT_ID>/... . Do not pass document titles, Drive open?id links, app:// URLs, or /document/create.

replace_textstring

Replacement text.

search_textstring

Exact text to find (case-sensitive).

Update Text Style

update_text_style
Full Description

Update text style for the given range.

At least one style field must be set (bold/italic/underline/font_size/link_url/ background_color/foreground_color). If all style fields are null, the request fails.

Parameters (3 required, 7 optional)
Required
document_urlstring

Google Docs URL in the format https://docs.google.com/document/d/<DOCUMENT_ID>/... . Do not pass document titles, Drive open?id links, app:// URLs, or /document/create.

end_indexinteger

End index of the style range (exclusive). Must be within segment bounds and greater than start_index.

start_indexinteger

Start index of the style range (inclusive). Must be within segment bounds and less than end_index.

Optional
background_colorarray
Default: null
boldboolean
Default: null
font_sizeinteger
Default: null
foreground_colorarray
Default: null
italicboolean
Default: null
link_urlstring
Default: null
underlineboolean
Default: null