pcb_set_board_shape
Define the physical PCB outline as a rectangle by specifying two opposite corners in mils, overwriting the current board shape to establish board size before placing components.
Instructions
Define the physical PCB board outline as a rectangle.
Overwrites the current board shape. Use this right after creating a new PCB document to establish the board size before placing parts. Coordinates are in mils; (x1,y1) and (x2,y2) are opposite corners in any order.
Args: x1: First corner X in mils y1: First corner Y in mils x2: Opposite corner X in mils y2: Opposite corner Y in mils
Returns: Dictionary confirming the new outline rectangle
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": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "pcb_set_board_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||