pcb_get_net_primitives
Retrieve all PCB primitives—tracks, pads, vias, and more—for a specified net in an EasyEDA document. Filter by type, fields, or limit results to avoid oversized responses.
Instructions
Get all primitives (tracks, pads, vias, etc.) belonging to a specific net
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net | Yes | The net name to query | |
| limit | No | Truncate result array to at most N items | |
| types | No | Filter by primitive types (e.g. ["Line", "Via", "Pad"]) | |
| fields | No | Project results to only these top-level keys. Response includes _availableFields showing all keys. IMPORTANT: Always specify fields when you know what you need — without it, responses include every property and can be extremely large (100KB+), wasting context. | |
| filter | No | Keep items matching all conditions (AND). Exact: {key: value}, prefix glob: {key: "R*"}, OR: {key: ["a","b"]} | |
| 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. |