Google Docs
Comprehensive Google Docs connector for creating, reading, and editing documents with support for text formatting, tables, images, named ranges, and headers/footers.
Categories: Document Management, Productivity, Collaboration
What you can ask
- Open the
Q2 Strategydoc and summarize the section on pricing. - Create a new doc in the
Engineering / RFCsfolder titled 'Auth migration' from this template. - Find every doc in
Shared drives / Saleslast edited over 90 days ago.
Set up
Google Docs needs an OAuth application from your organization before anyone can connect. An organization admin completes these steps once.
- Go to Organization > Connectors and find Google Docs. Click Enable, and choose which tools to allow.
- Create a Google Cloud project.
- Turn on the Google Docs API.
- Configure the OAuth consent screen.
- Create credentials, choose OAuth client ID, and set the type to Web application.
- Add the exact Redirect URI shown in the connector settings.
- Copy the client ID and client secret into the connector, then save it.
- Each member connects their own account the first time they use it.
⚠️ Warning: Do not enter your Devs.ai or Google Docs login email or password in the OAuth application fields.
To use one account for the whole organization, turn on Share one connection with everyone. Every member's agents then act as that account, with exactly the access it has.
OAuth scopes used by these tools (2)
Grant the scopes for the tools you plan to allow.
https://www.googleapis.com/auth/documentshttps://www.googleapis.com/auth/documents.readonly
Tools
Google Docs offers 46 tools. Admins choose which ones agents can use. See Tool permission groups.
Read (6)
View and search information without changing it.
| Tool | What it does |
|---|---|
find_text | Find literal text in a Google Docs document and return each match's UTF-16 start/end index and tab_id, ready to pass to insert_text, delete_text, or format_text. |
get_document | Retrieve a Google Docs document's full structural JSON by ID: the index ranges needed to edit (insert/delete/replace by index), styling, and images. |
get_document_end_index | Get the end index for appending content to a document |
get_document_text | Read a Google Docs document as lightweight markdown-lite text (headings, bullets, tab titles). |
list_tabs | List all tabs in a Google Docs document, returning tab IDs, titles, and nesting only (no document content). |
validate_credential | Validate Google Docs credentials. |
Write (17)
Create or send data.
| Tool | What it does |
|---|---|
append_text | Append text to the end of a document |
create_and_populate_table | Create and populate a table with data in one operation |
create_document | Create a new Google Docs document with optional title |
create_footer | Create a footer section at a section break in a document |
create_footnote | Insert a footnote reference at the given index. |
create_header | Create a header section at a section break in a document |
create_named_range | Create a named range (bookmark) in a document |
create_paragraph_bullets | Apply bullet or numbered list formatting to all paragraphs that overlap a range. |
create_tab | Create a new tab in a Google Docs document |
insert_image | Insert an inline image at a specific location |
insert_image_in_table_cell | Insert an image into a table cell by table position |
insert_section_break | Insert a section break at a specific index. |
insert_table | Insert a table with specified rows and columns |
insert_table_column | Insert a new column into an existing table |
insert_table_row | Insert a new row into an existing table |
insert_text | Insert text at a specific location in a document |
insert_text_in_table_cell | Insert text into a table cell by table position |
Delete or overwrite (23)
Remove or replace existing data.
| Tool | What it does |
|---|---|
batch_update_document | Apply multiple updates to a document in a single operation |
delete_footer | Delete a footer section from a document |
delete_header | Delete a header section from a document |
delete_named_range | Delete a named range from a document |
delete_paragraph_bullets | Remove bullet/numbered list formatting from all paragraphs that overlap a range. |
delete_tab | Delete a tab from a Google Docs document by tab ID. |
delete_table_column | Delete a column from an existing table |
delete_table_row | Delete a row from an existing table |
delete_text | Delete text from a specified range in a document |
format_paragraph | Apply paragraph formatting to a range in a document |
format_text | Apply text formatting to a range in a document |
merge_table_cells | Merge a rectangular block of table cells into one. |
pin_table_header_rows | Pin the first N rows of a table as headers that repeat at the top of every page break. |
replace_named_range_content | Replace the content of a named range with new text. |
replace_text | Find and replace all occurrences of text in a document |
unmerge_table_cells | Reverse a previous merge_table_cells operation, restoring the cells in the specified range to individual cells. |
update_document_style | Set page margins, page size, or background color on the document. |
update_named_style | Redefine a named style document-wide (HEADING_1 through HEADING_6, NORMAL_TEXT, TITLE, SUBTITLE). |
update_section_style | Update section style (columns, separator, content direction, margins) over a range. |
update_tab_properties | Update a tab's properties (e.g. rename it) in a Google Docs document |
update_table_cell_style | Update visual styling on a single table cell - background color, borders, padding, vertical alignment. |
update_table_column_properties | Set width on one or more columns in a table. |
update_table_row_style | Set minimum row height and/or overflow prevention on one or more rows in a table. |