goto_declaration
Navigate directly from a symbol's usage to its declaration in C/C++ by providing file, line, and column. Resolves header declarations for quick code inspection.
Instructions
Go to the declaration of a symbol (relevant in C/C++ for header declarations).
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>",
"col": "<col>"
},
"name": "goto_declaration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| col | Yes | Column number (1-indexed) | |
| file | Yes | Relative file path from project root | |
| line | Yes | Line number (1-indexed) |