find_variable
Locate where a specific variable or constant is defined and used across indexed files, returning matching files with context snippets.
Instructions
Find where a specific variable, constant, enum value, or #define is defined and used. Uses text matching to find exact occurrences across indexed files.
Args: variable_name: Name of the variable/constant to find project: Optional project name filter
Returns: Files containing the variable with context snippets
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": {
"variable_name": "<variable_name>"
},
"name": "find_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | ||
| variable_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |