sch_create_net_port
Create single or batch IN/OUT/BI net ports in a schematic by supplying coordinates, net name, and direction for each port.
Instructions
Create one or more IN/OUT/BI directional net ports in the schematic. Pass individual parameters for a single port, or use "batch" array for multiple ports in one call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X coordinate (for single creation) | |
| y | No | Y coordinate (for single creation) | |
| net | No | Net name (for single creation) | |
| batch | No | Array of net ports to create in one call (max 10 — each takes ~1.5s). When provided, the individual parameters above are ignored. | |
| mirror | No | Whether to mirror | |
| document | Yes | Target document UUID — auto-switches to this document before executing. Get UUIDs from list_instances or editor_get_open_tabs. | |
| rotation | No | Rotation angle in degrees | |
| component | No | Library device reference override | |
| direction | No | Port direction (for single creation) | |
| 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. |