outline
List every symbol and its line range in a source file without reading the full source, using a cached tree-sitter parse to show the file's structure.
Instructions
List every symbol (kind + line range) in a single source file via cached tree-sitter parse. Prefer over Read when you only need the file's structure (what's in here?) rather than the full byte stream — outline returns ~50 lines of structured records vs reading thousands of lines of source.
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": {
"path": "<path>"
},
"name": "outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | DEPRECATED — use `path`. Pre-v1.7 alias, still accepted; emits a deprecated_args notice in _meta. | |
| path | Yes | Filesystem path to the source file — canonical key (v1.7+). Absolute or relative to project_root. | |
| project_root | No | Absolute path to the project root (defaults to the MCP working directory) |