document_symbols
Retrieve a hierarchical tree of all symbols defined in a file, including functions, classes, and variables, to see code structure at a glance.
Instructions
Get all symbols (functions, classes, variables, etc.) defined in a file as a hierarchical tree.
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": {
"file": "<file>"
},
"name": "document_symbols"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Relative file path from project root |