get_document_symbols
Retrieve all classes, functions, and variables defined in a Dart file for hierarchical code navigation and analysis.
Instructions
Get all symbols (classes, functions, variables) in a Dart file.
Args: project_path: Absolute path to Dart project root. file_path: Absolute path to Dart file.
Returns: Hierarchical list of symbols 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>"
},
"name": "get_document_symbols"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| project_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |