gdscript_find
Find where a GDScript symbol is declared using only its name. Returns the file, zero-based line/character, kind, and containing class for direct use in other tools.
Instructions
Find where a symbol is declared BY NAME, without needing its position. Returns: declaration sites with file, ZERO-BASED line and character, kind, and containing class. USE THIS FIRST when you know a name but not its location - the returned line/character feed directly into gdscript_references, gdscript_hover and gdscript_rename. Guessing a character offset and landing one column off returns an empty result that looks identical to 'no such symbol'. Positions come from the language server, not from text matching.
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": {
"name": "<name>"
},
"name": "gdscript_find"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Optional: restrict the search to one file instead of the project | |
| name | Yes | Exact symbol name, e.g. take_damage | |
| max_files | No | Cap on files inspected when searching the whole project (default 60). The response reports when the cap applied. | |
| include_references | No | Also return every reference to the first declaration found |