Version2.0.0
Categorygoogle
AuthOAuth 2
Tools12
Transportstdio
LicenceMIT
01
What it does
The app, in its own words.
Create, read, and edit Google Docs documents - create, read content, insert text, append text, delete content, insert tables, insert images, find & replace, text styling, named ranges, batch updates. To delete a document, use the Google Drive app.
02
Tools
12 tools the agent can call.
Every one is declared with typed parameters and returns structured results, so the host can render them instead of narrating them.
- append-textAppend text to the end of a Google Doc.
- batch-update-documentPerform multiple operations on a Google Doc in a single atomic request. Supports insert, delete, and replace operations.
- create-documentCreate a new Google Doc with a title and optional initial content. Returns the document ID and URL.
- delete-contentDelete content in a range from a Google Doc. Use read-document to find the start and end indices.
- get-named-rangesGet all named ranges in a Google Doc. Named ranges are bookmarks that mark specific content regions by name.
- insert-imageInsert an inline image from a URL into a Google Doc at a specific index. The image must be publicly accessible.
- insert-tableInsert a table into a Google Doc at a specific index. The table is created with the specified number of rows and columns.
- insert-textInsert text at a specific position in a Google Doc. Index 1 is the start of the document.
- read-documentRead content from a Google Docs document.
- replace-all-textFind and replace all occurrences of a text string across the entire Google Doc. Returns the number of occurrences changed.
- update-documentReplace all occurrences of a text string in a Google Doc. Useful for updating placeholders or specific content.
- update-text-styleUpdate text styling (bold, italic, underline, font size, font family, foreground color) for a range of text in a Google Doc. Use read-document to find the start and end indices.
03
Auth and permissions
What it asks for.
Declared in the manifest, in advance. The app cannot reach anything it did not ask for here.
Scopes
https://www.googleapis.com/auth/documentshttps://www.googleapis.com/auth/documents.readonlyhttps://www.googleapis.com/auth/userinfo.email
System secrets
CLIENT_IDCLIENT_SECRET
User secrets
ACCESS_TOKENREFRESH_TOKEN
Reading further
The manifest and the source for Google Docs live in the monorepo, alongside the other apps.