Search nets
search_netsFind nets in a design by case-insensitive regex pattern, with sorted, paged results and notes when nothing matches. Use it to locate hierarchical or trimmed net names without exact anchors.
Instructions
Search for nets matching a regex pattern. Matching is case-insensitive by default. Returns sorted results keyed by design name, with a notes field when nothing matches. KiCad nets declared inside a hierarchical sheet are sheet-path-prefixed (e.g. a "D0" data line on the Peripherals sheet is named "/Peripherals/D0", not "/D0"), so prefer unanchored patterns like "D0" over "^/D0$" or you may miss bussed/hierarchical nets. A name with leading or trailing whitespace also matches as trimmed, so "^SIG$" finds "SIG ". net_properties gives the design's own properties of the nets listed, such as DIFFERENTIAL_PAIR (the pair a net belongs to: Capture's own property, an Altium Differential Pair directive on both nets, or KiCad's +/- or P/N pair naming less pairs carrying a supply pin) and VOLTAGE, where the design sets them. Rejects patterns that match all items; use list_nets for full results. results is paged: max_results entries (default 50) from offset, and next_offset is set when there are more. Notes about parts and nets cover the page only.
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": {
"pattern": "<pattern>",
"design": "<design>"
},
"name": "search_nets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| design | Yes | Path to design file | |
| offset | No | Index of the first results entry to return, from next_offset. Default: 0. | |
| pattern | Yes | Regex pattern | |
| max_results | No | Max results entries to return. Default: 50. | |
| design_variant | No | Design variant name from list_designs' design_variants. Required when the design records named variants, which are its only builds. <Default> (alias: default) is the one build of a design that records none |