outline
Map a JS/TS file's functions, classes, and interfaces with start-end line spans to navigate code without reading it fully; enable detailed mode to include locals and callbacks.
Instructions
What's in this file? Example: outline(file_path="src/app.ts").
Indented outline (functions, classes, interfaces, with :start-end line spans) of a JS/TS file in source order, so you can navigate without reading it in full. Locals, callbacks and object-literal keys inside functions and variables are left out; pass detailed=true to include them. Follow up with hover/definition/references at a listed line, or symbol_info by name.
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_path": "<file_path>"
},
"name": "outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detailed | No | ||
| file_path | Yes |