Connect pin to net
easyeda_schematic_connect_pin_to_netConnects a specified component pin to a named net by drawing a short wire stub at its exact coordinate, so ERC, ratsnest, and autorouting recognize the connection.
Instructions
Create real EasyEDA connectivity for a pin: draws a short wire stub from its exact coordinate, tagged with netName. Same-netName wires merge globally, so this joins the pin to everything else on that net — visible to ERC, ratsnest, and autorouting.
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": {
"projectId": "<projectId>",
"primitiveId": "<primitiveId>",
"pinNumber": "<pinNumber>",
"netName": "<netName>",
"confirmWrite": "<confirmWrite>"
},
"name": "easyeda_schematic_connect_pin_to_net"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| netName | Yes | The net name to connect the pin to (e.g. VCC, GND, DATA0) | |
| pinNumber | Yes | The pin number or pin name on the component (e.g. "1", "VCC", "GND") | |
| projectId | Yes | The project/schematic ID | |
| stubLength | No | Length of the wire stub drawn outward from the pin. Defaults to 10. | |
| primitiveId | Yes | The primitive ID of the component | |
| confirmWrite | Yes | Must be the literal boolean true (not the string "true") to allow this write. | |
| expectedPcbUuid | No | Expected focused PCB document UUID; reject a different focused PCB before a write. | |
| expectedSchematicPageUuid | No | Expected focused schematic page UUID; reject a different focused page before a write. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||