add_shape
Add rectangles, ellipses, lines, or polygons to an image project, with fill, stroke, rounded corners, and transparency support.
Instructions
Vector shape: rect (radius = rounded corners), ellipse, line, polygon (points relative to x,y). Colors accept #rrggbbaa for transparency.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | ||
| w | No | ||
| x | No | ||
| y | No | ||
| fill | No | #ffffff | |
| kind | No | rect | |
| name | No | ||
| points | No | ||
| radius | No | ||
| stroke | No | ||
| project | No | ||
| stroke_width | No |