gws.docs.insert_text
Insert literal text into a Google Doc, either appended at the end or at a specified position. Use this tool to add content directly without regex.
Instructions
Insert literal text into a Google Doc. location is 'end' (append to document body) or a positive 1-based integer index. No regex — text is inserted literally. This tool irreversibly modifies user content. Confirm intent with the user before calling it on documents you did not create in this session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to insert | |
| account | No | Account label or email. Uses default if omitted. | |
| location | No | 'end' (default) or a 1-based integer index | |
| document_id | Yes | The document ID |