pcb_create_room
Creates a rectangular confinement room on the active PCB to group and restrict selected components by designator, helping organize layout and enforce placement boundaries.
Instructions
Create a room for component grouping on the active PCB.
Creates a confinement constraint rule that defines a rectangular region. Components can be assigned via scope expression.
Args: name: Room name (e.g., "Power Section", "USB Block") x1: First corner X in mils y1: First corner Y in mils x2: Second corner X in mils y2: Second corner Y in mils components: Comma-separated component designators to confine (e.g., "U1,U2,R1,R2"). Optional; empty = applies to all.
Returns: Dictionary with created status, name, coordinates, and scope
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": {
"name": "<name>",
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "pcb_create_room"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| name | Yes | ||
| components | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||