roslyn:find_references
Find all references to a code symbol across a .NET solution by providing its file position. Returns file paths, line numbers, and code context for each usage.
Instructions
Find all references to a symbol across the entire solution. Returns file paths, line numbers, and code context for each reference. IMPORTANT: Uses ZERO-BASED coordinates (editor line 10 = pass line 9).
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>",
"column": "<column>"
},
"name": "roslyn:find_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Zero-based line number (editor line - 1) | |
| column | Yes | Zero-based column number (editor column - 1) | |
| filePath | Yes | Absolute path to source file containing the symbol | |
| maxResults | No | Maximum number of references to return (default: 100). Results are truncated with a hint if limit is exceeded. |