lib_add_symbol_polygon
Add a filled polygon to the current library symbol by specifying vertices in mils, with adjustable grid snapping for accurate component glyphs.
Instructions
Add a polygon (filled shape) to the current library symbol.
Args: vertices: Comma-separated x,y coordinate pairs in mils. Example: "0,0,100,0,100,100,0,100" creates a square with vertices at (0,0), (100,0), (100,100), (0,100). Minimum 3 vertices (6 values) required. grid: snap grid (mils) for the vertices. A filled polygon is glyph detail (e.g. a diode triangle) and doesn't need the 100-mil pin grid (rule 15), so the default is a finer 25; pass 100 for coarse or 0/1 to disable snapping.
Returns: Dictionary confirming polygon addition with vertex count
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": {
"vertices": "<vertices>"
},
"name": "lib_add_symbol_polygon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid | No | ||
| vertices | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||