tool_add_shape
Add a rect, circle, ellipse or line layer.
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": {
"design_id": "<design_id>"
},
"name": "tool_add_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| fill | No | Fill color | |
| name | No | Layer name | |
| shape | No | rect|circle|ellipse|line | |
| width | No | ||
| height | No | ||
| stroke | No | Stroke color | |
| design_id | Yes | Design id from create-design | |
| strokeWidth | No |