add_shape
Add geometric shapes to any slide with full control over position, size, and styling. Supports rectangles, circles, triangles, and more.
Instructions
Add a shape to a slide (rectangle, circle, triangle, etc.)
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": {
"presentationId": "<presentationId>",
"slideNumber": "<slideNumber>",
"shape": "<shape>",
"x": "<x>",
"y": "<y>",
"w": "<w>",
"h": "<h>"
},
"name": "add_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | Yes | Height in inches | |
| w | Yes | Width in inches | |
| x | Yes | X position in inches | |
| y | Yes | Y position in inches | |
| fill | No | Fill color (hex format) | |
| line | No | Line color (hex format) | |
| shape | Yes | Shape type (e.g., 'rect', 'ellipse', 'roundRect', 'triangle') | |
| lineSize | No | Line thickness in points | |
| slideNumber | Yes | Slide number (1-based index) | |
| presentationId | Yes | The ID of the presentation |