goto_definition
Locate the declaration of a SystemVerilog symbol from its file, line, and occurrence so you can navigate directly to its definition.
Instructions
Find where symbol (as written on line of file) is declared.
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": "<file>",
"line": "<line>",
"symbol": "<symbol>"
},
"name": "goto_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | SystemVerilog file path, absolute or relative to the workspace root | |
| line | Yes | 1-based line number | |
| symbol | Yes | Symbol text as written on that line | |
| occurrence | No | Which occurrence on the line, if the symbol appears more than once (default 1) |