get_intent
Retrieve source-level intent erased by netlist lowering, including enum/typedef state names, encodings, and symbolic parameter or generic expressions from RTL declarations.
Instructions
Retrieve source-level intent that netlist lowering erases (warm-only). Use when the answer is in the SystemVerilog or VHDL type/declaration, not the flattened gates: enum/typedef state names + encodings (incl. PACKAGE typedefs whose members live in another file), and symbolic PARAMETER or generic expressions (the formula behind a baked-in width). ref: an exact-name list (["cva6", "csr_regfile_i", "priv_lvl_q"]), a package member (["riscv::PLEN"]), a parameter (["top", "inst", "PARAM"]), an instance list for its parameters, or ["pkg"] to list package parameters. want: auto | type | fsm_states | parameters. If the intent layer is not loaded, returns a note and you should fall back to get_source.
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": {
"ref": "<ref>"
},
"name": "get_intent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bit | No | Bus bit index, separate from the literal name; omit for the whole object. | |
| ref | Yes | List of exact object/instance/parameter names. Package name or pkg::NAME is a single-element list. | |
| want | No | Intent fact to retrieve; auto selects from the reference. | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |