go_to_declaration
Navigate to the declaration of a symbol in code files using Language Server Protocol. Find where symbols are declared, especially useful for languages with separate header files like C/C++.
Instructions
Jump to the declaration of a symbol at a specific location in a file via LSP. Completes the 'go to X' family alongside go_to_definition, go_to_type_definition, and go_to_implementation. Most useful for languages with separate declaration and definition (e.g., C/C++ header files). Returns the file path and position where the symbol is declared.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| language_id | No | ||
| line | Yes | ||
| column | Yes |