Insert text
insert_textInsert additional text into a Google Slides shape or table cell at a chosen character index, using newlines for paragraphs. Ideal for filling empty placeholders or adding to existing content without replacement.
Instructions
Inserts text into a shape or a table cell (batchUpdate insertText) at a 0-based character index (default 0 = the beginning). For a table cell pass row_index + column_index together. Text carries \n for new paragraphs; the target must be a shape that can hold text or a table — images and lines cannot. To REPLACE what's already there use set_text instead; to fill an empty layout placeholder this works directly (find its object id via list_slides).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to insert; use \n for paragraph breaks. | |
| object_id | Yes | The shape or table object id (from list_slides). | |
| row_index | No | Table cell row (0-based; requires column_index). | |
| column_index | No | Table cell column (0-based; requires row_index). | |
| insertion_index | No | 0-based character index to insert at (default 0 — the start of the existing text). | |
| presentation_id | Yes | The presentation id — the long id from the URL (docs.google.com/presentation/d/<presentationId>/edit) or from create_presentation output. |