edit_shape_paragraphs
Replace a shape's paragraph content with raw OOXML <a:p> XML while preserving body properties and list styles. Read the current paragraphs, modify the XML, then write it back.
Instructions
Replace paragraph content of a shape with raw OOXML <a:p> XML. Preserves <a:bodyPr> and <a:lstStyle>. Use read_shape_paragraphs first to get the current XML, modify it (using /pptx skill knowledge), then write it back. The slide is exported, modified server-side, and reimported — data never enters Claude's context. NOTE: the reimport deletes and reinserts the slide, which makes PowerPoint's view jump to the first slide. For text-only changes, prefer execute_officejs (in place via shape.textFrame.textRange — view position is preserved).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | The <a:p> paragraph XML to replace the current text body content with | |
| shapeId | Yes | Shape ID from inspect_slide results | |
| slideIndex | Yes | Zero-based slide index | |
| presentationId | No | Target presentation ID from list_presentations. Optional when only one presentation is connected. |