create_trace
Draws a copper trace between two pads, vias, or junctions on the same net, optionally through corner points, and returns junction endpoints for branching. Run DRC afterward to check clearances.
Instructions
Draw a copper trace between two pads/vias/junctions of the same net, optionally via corner points. Returns the corner points as 'junction:' endpoints so later traces can branch from them. Clearances are not checked here: run run_drc afterwards.
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": {
"project_path": "<project_path>",
"start": "<start>",
"end": "<end>"
},
"name": "create_trace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Pad as 'DESIGNATOR:PAD' (pad name or signal name), 'via:<uuid>', or 'junction:<uuid>' (a waypoint returned by an earlier create_trace, for T-joins) | |
| board | No | Board name, UUID or index; default: first | |
| layer | No | Copper layer: top_cu, bot_cu, or in1_cu... (inner) | top_cu |
| start | Yes | Pad as 'DESIGNATOR:PAD' (pad name or signal name), 'via:<uuid>', or 'junction:<uuid>' (a waypoint returned by an earlier create_trace, for T-joins) | |
| width_mm | No | default: board default trace width | |
| waypoints | No | Intermediate corner points [[x_mm, y_mm], ...] | |
| project_path | Yes | Path to the project's *.lpp file or its directory |