gdscript_declaration
Find where a GDScript symbol is declared by navigating to its declaration site from any reference in your code.
Instructions
Navigate to the declaration of a symbol at a given position. Returns: file path and line number of the declaration. IMPORTANT: Uses ZERO-BASED coordinates (editor line 1 = pass line 0). Similar to gdscript_definition but returns the declaration site.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute or relative path to the .gd file | |
| line | Yes | Zero-based line number (editor line - 1) | |
| character | Yes | Zero-based character position |