find_references
Locate all references to Python symbols in code by analyzing a specific position. This tool identifies where variables, functions, or classes are used throughout your codebase.
Instructions
Find all references to a symbol at a specific position.
Returns all reference locations for 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": {
"code": "<code>",
"position": "<position>"
},
"name": "find_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Python code as string. | |
| position | Yes | Character position (0-indexed) in the code. | |
| python_path | No | Optional path to Python interpreter. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||