> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mantle.chat/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Docs

> Create, read, and edit documents in Google Docs

Connect your Google account to let selected agents create and edit documents, insert text and tables, and work with the
Docs you approve.

***

## What you unlock

<CardGroup cols={2}>
  <Card title="Document creation" icon="file-lines">
    Create new documents from scratch or from markdown, and copy existing documents — directly from chat.
  </Card>

  <Card title="Content editing" icon="pen-to-square">
    Insert text, tables, images, and lists into documents, or update entire sections with markdown content.
  </Card>

  <Card title="Search and export" icon="magnifying-glass">
    Search for documents across your account and export them as PDF for sharing or archiving.
  </Card>

  <Card title="15+ agent tools" icon="wrench">
    Give your AI agent full read/write access to documents, text, tables, images, headers, footers, and more.
  </Card>
</CardGroup>

***

## Connect Google Docs

<Steps>
  <Step title="Open Settings → Integrations">
    In any workspace go to **Settings → Integrations** and select **Google Docs**.
  </Step>

  <Step title="Authorize with Google">
    Click **Connect** — you'll be redirected to Google's OAuth consent screen. Sign in with your Google account and
    grant document access.
  </Step>

  <Step title="Start using Google Docs in agents">
    Open the agent and enable only the Google Docs actions it needs. Access is limited by the connected Google account.
  </Step>
</Steps>

***

## Agent tools

Add Google Docs tools to agents that need them. Their access is limited by the connected Google account and selected
tools.

### Documents

| Tool             | Description                                               |
| ---------------- | --------------------------------------------------------- |
| Create document  | Create a new document from plain text or markdown         |
| Get document     | Retrieve the full content of a document by ID             |
| Get plain text   | Extract the plain text content of a document              |
| Search documents | Find documents by name or keyword                         |
| Update document  | Update document content with markdown or structured edits |
| Copy document    | Create a copy of an existing Google Doc                   |
| Export as PDF    | Export a document as a downloadable PDF                   |

### Text and content

| Tool                 | Description                                            |
| -------------------- | ------------------------------------------------------ |
| Insert text          | Insert text at a specific position in a document       |
| Replace text         | Find and replace all occurrences of text in a document |
| Delete content range | Remove content from a specified range                  |

### Tables and media

| Tool          | Description                                    |
| ------------- | ---------------------------------------------- |
| Insert table  | Add a table with specified rows and columns    |
| Insert image  | Insert an inline image at a specified position |
| Replace image | Replace an existing image in the document      |

### Structure

| Tool              | Description                               |
| ----------------- | ----------------------------------------- |
| Create header     | Add a header section to the document      |
| Create footer     | Add a footer section to the document      |
| Create footnote   | Insert a footnote at a specified position |
| Insert page break | Add a page break at a specified location  |

***

## Triggers

<Note>
  Triggers are not yet available for Google Docs. You can still add its tools to an agent and use them in chats or
  tasks.
</Note>

***

## Example use cases

<AccordionGroup>
  <Accordion title="Draft a document from a chat conversation">
    After a brainstorm in chat, ask your agent to create a new Google Doc with the key ideas organized into sections —
    title, outline, and action items — and share the link in the channel.
  </Accordion>

  <Accordion title="Search and summarize a document">
    Ask your agent to find a specific doc by name, read its content, and provide a concise summary in chat — with a
    direct link to the full document.
  </Accordion>

  <Accordion title="Update a document with meeting notes">
    After a meeting, tell your agent to append the discussion summary, decisions, and next steps to an existing Google
    Doc — keeping your team's records up to date automatically.
  </Accordion>
</AccordionGroup>

***

## Troubleshooting

<AccordionGroup>
  <Accordion title="OAuth consent screen doesn't appear">
    Make sure pop-ups are not blocked in your browser. If the Google sign-in page doesn't open, try again with pop-ups
    allowed or use a different browser.
  </Accordion>

  <Accordion title="Agent can't find my document">
    Search uses document titles and content. Make sure the document is accessible to the authenticated Google account.
    Check sharing settings in Google Drive if the document belongs to someone else.
  </Accordion>

  <Accordion title="Edit operations fail">
    Confirm that the authenticated account has edit access to the document. View-only or comment-only access will block
    write operations.
  </Accordion>

  <Accordion title="Authorization expired">
    Google OAuth tokens can expire. Go to **Settings → Integrations → Google Docs**, disconnect, and reconnect to
    refresh your authorization.
  </Accordion>
</AccordionGroup>

***

<Card title="Back to Integrations" icon="plug" href="/integrations/overview">
  View all available integrations
</Card>
