Add shape
add_shapeAdd a rectangle, rounded rectangle (rounded_rect) or circle to a page, for a band, a card, a pill label or a colour block behind text. x,y are the TOP-LEFT of the shape’s box for every shape, a circle included, and the returned element reports the same top-left plus its real width and height. A circle is size wide and tall; a rectangle takes width and height separately (or size for a square). cornerRadius rounds a rectangle (px), opacity is 0 to 1, stroke/strokeWidth draw an outline. Shapes stack above what is already on the page: use reorder_element to put one behind text. Owner-scoped, paid plans. Next: add_text on top, or reorder_element.
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": {
"projectId": "<projectId>",
"pageId": "<pageId>",
"shape": "<shape>"
},
"name": "add_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| fill | No | ||
| size | No | ||
| shape | Yes | ||
| width | No | ||
| height | No | ||
| pageId | Yes | ||
| stroke | No | ||
| opacity | No | ||
| projectId | Yes | ||
| strokeWidth | No | ||
| cornerRadius | No |