El catálogo/Google Docs

Google Docs

app.google.docs

Create, read, and edit Google Docs documents

OAuth 2googleLeer el código
Versión2.0.0
Categoríagoogle
AutenticaciónOAuth 2
Herramientas12
Transportestdio
LicenciaMIT
01

Qué hace

La aplicación, en sus propias palabras.

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.

googledocsdocumentswriteeditcreate
02

Herramientas

12 herramientas que el agente puede llamar.

Todas se declaran con parámetros tipados y devuelven resultados estructurados, así que el anfitrión puede renderizarlas en vez de narrarlas.

  • 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

Autenticación y permisos

Qué pide.

Declarado en el manifiesto y por adelantado. La aplicación no puede alcanzar nada que no haya pedido aquí.

Permisos

https://www.googleapis.com/auth/documentshttps://www.googleapis.com/auth/documents.readonlyhttps://www.googleapis.com/auth/userinfo.email

Secretos de sistema

CLIENT_IDCLIENT_SECRET

Secretos de usuario

ACCESS_TOKENREFRESH_TOKEN

Seguir leyendo

El manifiesto y el código de Google Docs están en el monorepo, junto al resto de aplicaciones.

Leer el códigoVolver al catálogo

Google Docs · Agent Apps