find_references
Locates all references to a symbol in a Dart project based on its position. Helps developers navigate code by finding usages of functions, variables, or classes.
Instructions
Find all references to a symbol at a specific position.
Args: project_path: Absolute path to the Dart project root. file_path: Absolute path to the Dart file. line: 0-indexed line number. column: 0-indexed column number.
Returns: Formatted list of reference locations or error message.
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": {
"project_path": "<project_path>",
"file_path": "<file_path>",
"line": "<line>",
"column": "<column>"
},
"name": "find_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | ||
| column | Yes | ||
| file_path | Yes | ||
| project_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |