add_line
Draw a graphic line segment on a KiCad PCB layer such as silkscreen, fab, or Edge.Cuts. Define start and end points in mm, layer name, and width.
Instructions
Add a graphic line segment (silkscreen, fab, Edge.Cuts, etc.).
Args: start_x_mm, start_y_mm: Start point in mm. end_x_mm, end_y_mm: End point in mm. layer: Layer name, e.g. 'F.SilkS' or 'Edge.Cuts'. width_mm: Line width in mm.
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": {
"start_x_mm": "<start_x_mm>",
"start_y_mm": "<start_y_mm>",
"end_x_mm": "<end_x_mm>",
"end_y_mm": "<end_y_mm>"
},
"name": "add_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | F.SilkS | |
| end_x_mm | Yes | ||
| end_y_mm | Yes | ||
| width_mm | No | ||
| start_x_mm | Yes | ||
| start_y_mm | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||