add_segment
Draw a straight line on a specified layer of the PCB layout by providing start and end coordinates and line width.
Instructions
Add a straight graphic segment (line) to the board.
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": {
"x1_mm": "<x1_mm>",
"y1_mm": "<y1_mm>",
"x2_mm": "<x2_mm>",
"y2_mm": "<y2_mm>",
"layer_name": "<layer_name>"
},
"name": "add_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1_mm | Yes | ||
| x2_mm | Yes | ||
| y1_mm | Yes | ||
| y2_mm | Yes | ||
| width_mm | No | ||
| layer_name | Yes |