add_label
Add a local text label to a KiCad schematic at specified coordinates, with optional orientation and grid snapping for annotating connections or notes.
Instructions
Add a local label (text label) to the schematic.
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": {
"file_path": "<file_path>",
"text": "<text>",
"x": "<x>",
"y": "<y>"
},
"name": "add_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| text | Yes | The label text. | |
| file_path | Yes | The .kicad_sch file. | |
| orientation | No | The angle of the label. | |
| snap_to_grid | No | True: move the label to the nearest point of the connection grid of the project (default 1.27 mm), except on a connection point of the sheet (a pin, a wire, a label). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |