gd_lsp_definition
Locates the source file and line number of a symbol in a Godot .gd file by specifying file path, line, and character position.
Instructions
Finds the definition (source file and line) of the symbol at the given position.
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": {
"filePath": "<filePath>",
"line": "<line>",
"character": "<character>"
},
"name": "gd_lsp_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the .gd file | |
| line | Yes | 0-indexed line number | |
| character | Yes | 0-indexed character/column number |