create_shape
Creates geometric shapes—rectangles, ellipses, diamonds, and circles—with optional labels, frame containment, and visual styling for Excalidraw diagrams.
Instructions
Create a geometric shape (rectangle, ellipse, diamond) with optional label, frame containment, and visual styling.
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": {
"type": "<type>",
"x": "<x>",
"y": "<y>",
"w": "<w>"
},
"name": "create_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | ||
| w | Yes | ||
| x | Yes | ||
| y | Yes | ||
| type | Yes | ||
| label | No | ||
| opacity | No | ||
| frame_id | No | ||
| fillStyle | No | ||
| font_size | No | ||
| roughness | No | ||
| roundness | No | ||
| font_family | No | ||
| strokeColor | No | ||
| strokeStyle | No | ||
| strokeWidth | No | ||
| backgroundColor | No |