replace_trace
Replace a PCB trace's geometry while keeping its endpoints connected. Preview changes with dry_run, then apply after confirming the expected SHA256 hash.
Instructions
Replace trace geometry while preserving both connected endpoints. All distances are in millimetres, regardless of the document's own Units attribute. dry_run=true previews without writing. Set dry_run=false only after inspecting the preview and pass its expected_sha256.
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": {
"trace_id": "<trace_id>",
"points": "<points>",
"layer": "<layer>",
"width": "<width>"
},
"name": "replace_trace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| txid | No | ||
| layer | Yes | ||
| width | Yes | ||
| points | Yes | ||
| dry_run | No | ||
| trace_id | Yes | ||
| clearance | No | ||
| expected_sha256 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||