edit_shape_paragraphs
Replaces a shape's paragraph text body in PowerPoint using raw OOXML while preserving body properties and list styles. Read the XML first, modify it, then write it back to update slide text.
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, but the view is restored to the edited slide afterwards. For text-only changes, execute_officejs still avoids the reimport entirely (in place via shape.textFrame.textRange).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slide": "<slide>",
"shapeId": "<shapeId>",
"xml": "<xml>"
},
"name": "edit_shape_paragraphs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | The <a:p> paragraph XML to replace the current text body content with | |
| slide | Yes | Slide number, 1-based (slide 1 = first slide) | |
| shapeId | Yes | Shape ID from inspect_slide results | |
| presentationId | No | Target presentation ID from list_presentations. Optional when only one presentation is connected. |