drive_docs_append
Append new text or paragraphs to the end of an existing Google Doc by document ID, leaving current content intact. Preview changes with dry_run before writing.
Instructions
Append text at the end of a Google Doc; use drive_docs_replace to change existing text. Mirrors omni-dev drive docs append. Example: document_id, text:"new paragraph", dry_run:true. Use text_path for existing files. stale-revision means reread and retry through the complete engine, which may then refuse a stale lease. dry_run defaults to false. Dry-run first: previews need no lease. Real writes require an operator allow rule and a lease unless require_lease:false. Acquire with drive_lease_acquire. A lease permits repeated writes to one file until expiry. refused-lease-stale needs a fresh backup: release with omni-dev drive lease release or wait for expiry before acquiring (acquire reuses stale live tokens too). Cancellation/timeout is not rollback; inspect state before retrying, especially append. Output is complete tagged YAML; refusals/failures set is_error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text to append, e.g. a new paragraph. Exactly one of text or text_path is required. | |
| lease | No | Token from drive_lease_acquire or omni-dev drive lease acquire. Not needed for dry_run or operator require_lease:false rules; any supplied token is still validated. | |
| account | No | Selects a named Drive account instead of the ambient `--account`/`OMNI_DEV_DRIVE_ACCOUNT` resolution — e.g. `work`. Omit to use the resolved default account (or the legacy single-account credentials, if no named accounts are configured). Call `drive_account_list` to discover configured names. | |
| dry_run | No | Preview without mutating or requiring a lease. Default false; preview first. | |
| text_path | No | Local UTF-8 text file, mutually exclusive with text. Stdin (-) is unsupported. | |
| document_id | Yes | Document id from /d/<ID>/ in a Docs URL, e.g. 1a2B3c4D. Required. |