Add a slide
add_slideAdd a blank or layout-based slide to a Google Slides presentation at a specified position and get back its object ID for editing. Choose a predefined layout or custom layout ID.
Instructions
Adds a slide (batchUpdate createSlide) and returns the new slide's objectId in the reply. Pick the look with either predefined_layout (BLANK, TITLE, TITLE_AND_BODY, SECTION_HEADER, ...) or layout_object_id from list_layouts — not both; with neither the slide copies the layout of the current last slide. insertion_index is the 0-based position (omitted = append at the end). Placeholders inherited from the layout arrive empty — find their object ids via list_slides, then fill them with set_text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_id | No | Optional custom object id for the new slide (5-50 chars of [a-zA-Z0-9_-:]). | |
| insertion_index | No | 0-based position for the new slide; omitted = append at the end. | |
| presentation_id | Yes | The presentation id — the long id from the URL (docs.google.com/presentation/d/<presentationId>/edit) or from create_presentation output. | |
| layout_object_id | No | A concrete layout's object id from list_layouts (alternative to predefined_layout). | |
| predefined_layout | No | A predefined layout; the theme's actual layouts may support only a subset. |