pcb_navigate_to_region
Navigate and zoom the PCB editor viewport to fit a specific region defined by boundary coordinates in mil.
Instructions
Navigate and zoom the PCB editor viewport to fit a specific region. Coordinates are PCB canvas coordinates in mil (1 mil = 0.001 inch), relative to the canvas origin: +X = rightward, +Y = upward. Lengths (widths, diameters) are also in mil. Use pcb_canvas_origin to read/set the origin offset and pcb_convert_coordinates to convert between canvas and data coordinates.
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": {
"left": "<left>",
"right": "<right>",
"top": "<top>",
"bottom": "<bottom>",
"document": "<document>"
},
"name": "pcb_navigate_to_region"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | Yes | Top boundary Y | |
| left | Yes | Left boundary X | |
| right | Yes | Right boundary X | |
| bottom | Yes | Bottom boundary Y | |
| document | Yes | Target document UUID — auto-switches to this document before executing. Get UUIDs from list_instances or editor_get_open_tabs. | |
| instance_id | No | Target EasyEDA instance ID (8-char hex). Required when multiple instances are connected. Omit when only one instance is connected (auto-selected). Use list_instances to see connected instances. |