POST
gdocs_documents_batch_update.py
Requires
https://www.googleapis.com/auth/documents. Costs 1 against the provider’s own quota.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Apply a list of edits to a document. Each request sets exactly one kind of edit — insert_text, replace_all_text, update_text_style, insert_table and so on. Edits apply in order against a document that shifts as they do: when inserting at several indices, order the requests back-to-front so earlier insertions do not move the positions later ones refer to.
from charter.packs import gdocs
result = await gdocs.documents_batch_update.ainvoke({"documentId": ..., "body": ...})
https://www.googleapis.com/auth/documents. Costs 1 against the provider’s own quota.body.requests carries 33 kinds of edit behind one method.
That is more context than most tasks. Narrow it at the call site
with Tool.derived:narrowed = gdocs.documents_batch_update.derived(
name="documents_batch_update_narrowed",
keep={"replace_all_text", "insert_text", "update_text_style"},
)
| Field | Type | Description |
|---|---|---|
documentId * | string | The ID of the document to update. |
| Field | Type | Description |
|---|---|---|
body * | BatchUpdateBody | The edits to apply. |
Was this page helpful?