add_shape
Add shapes to Keynote slides with specified type, position, size, and optional fill color or semantic role.
Instructions
Adds a shape to a slide with specified type, position, size, and optional fill colour
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": {
"slideIndex": "<slideIndex>",
"shapeType": "<shapeType>",
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>"
},
"name": "add_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position in points | |
| y | Yes | Y position in points | |
| role | No | Semantic shape role. When provided, applies smart defaults for color and sizing from the brand system | |
| width | Yes | Width in points | |
| height | Yes | Height in points | |
| fillColor | No | Fill colour as hex, e.g. "#FF0000" | |
| shapeType | Yes | The kind of shape to create | |
| slideIndex | Yes | 1-based slide index |