cross_references
Find where a symbol is defined and all places it is referenced, including calls, imports, and attribute accesses, to trace usage and resolve naming collisions.
Instructions
Find where a symbol is defined and each place that references it: calls, imports and attribute accesses.
Args: file_path: When names collide, select the definition in this repository-relative file. line: Select the definition by its start line. cursor: Continue a paged result. page_size: References per page, 1 to 100 (default 20).
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": {
"symbol_name": "<symbol_name>"
},
"name": "cross_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | ||
| cursor | No | ||
| file_path | No | ||
| page_size | No | ||
| workspace | No | Project path (default: this project) | |
| max_tokens | No | ||
| symbol_name | Yes |