get_hierarchy
Browse instances and structural children below a given path in an elaborated SystemVerilog design, with depth and pagination controls for hierarchy inspection.
Instructions
Browse the instance tree below path (or the top instance). Use this
for structural children; use find for design-wide name search or get_stats
for aggregate model counts. Lists only non-assign
children (real submodules + leaf primitives); assign glue is reported as
assign_count, not enumerated. Each child carries a leaf flag (submodule
vs leaf primitive). depth<=5; the non-assign set is paginated at the root
via limit/cursor (next_cursor/has_more), deeper levels via children_truncated.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_hierarchy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Hierarchical instance path; omit to start at the top instance. | |
| depth | No | Tree depth from 1 through 5; out-of-range values are clamped. | |
| limit | No | Maximum non-assign children per level; root default 20, maximum 100. | |
| cursor | No | Opaque root-level next_cursor from a previous response. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |