add_shape_to_slide
Insert shapes (rectangle, oval, triangle) into a PowerPoint slide, with custom text, fill color, and positioning.
Instructions
Add a shape (rectangle, oval, triangle) to a PPTX slide
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": {
"file_path": "<file_path>",
"slide_index": "<slide_index>"
},
"name": "add_shape_to_slide"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text inside shape | |
| file_path | Yes | Absolute path to the .pptx file | |
| fill_color | No | Fill color hex (e.g. '#FF0000') | |
| shape_type | No | Shape: rectangle, oval, rounded_rectangle, triangle | rectangle |
| top_inches | No | Top position in inches | |
| left_inches | No | Left position in inches | |
| output_path | No | Save to different path | |
| slide_index | Yes | Slide index (0-based) | |
| width_inches | No | Width in inches | |
| height_inches | No | Height in inches |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |