manage_shape
Modify or remove an existing slide element—text box, shape, picture, chart, table, or placeholder—by deleting, clearing text, resizing, restacking, or moving it to another slide.
Instructions
Change or remove one existing element (text box, shape, picture, icon, chart, table, placeholder) on a slide.
Find shape_index with get_slide_info, which lists every element with its text and position. Indexes are 0-based and shift down by one after a delete or move_to_slide, so re-read get_slide_info before a second call on the same slide (or work from the highest index down).
operation:
"delete": remove the element. A placeholder's text is cleared instead, since the slide layout would otherwise show its prompt.
"clear_text": empty the element's text, keeping it and its format (for a table, every cell).
"set_geometry": move and/or resize — left, top, width, height in inches; pass only what changes.
"bring_to_front" / "send_to_back": restack it above or below every other element on the slide.
"move_to_slide": move it to target_slide_index (0-based) at the same position (or at left/top if given). Use this for content built on the wrong slide. A placeholder's text moves into the target's matching placeholder.
To replace an element's content, prefer editing it in place (populate_placeholder, manage_text) over deleting and re-adding it — the element keeps its template formatting that way.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| left | No | ||
| width | No | ||
| height | No | ||
| operation | Yes | ||
| shape_index | Yes | ||
| slide_index | Yes | ||
| presentation_id | Yes | ||
| target_slide_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |