go_to_definition
Navigate to the definition of a symbol at a given line and column in a Dart file, helping developers understand code structure.
Instructions
Go to definition of symbol at position.
Args: project_path: Absolute path to Dart project root. file_path: Absolute path to Dart file. line: 0-indexed line number. column: 0-indexed column number.
Returns: Definition location(s) 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": "go_to_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | ||
| column | Yes | ||
| file_path | Yes | ||
| project_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |