document_symbols
Outline code files by listing classes, functions, and types with line numbers. Use directory scope to generate a signatures-only skeleton of every file, saving tokens while revealing structure.
Instructions
Outline a file — classes/functions/types as a capped kind name :line list. Cheaper than reading the whole file for its structure. scope="directory" builds a signatures-only skeleton of every code file under path.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "document_symbols"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File to outline (or, with scope=directory, the subtree; default = root). | |
| scope | No | `file` (default) | `directory` (skeleton of every file under it). | |
| backend | No | ||
| maxResults | No | ||
| projectPath | No |