code_outline
Extract a file's structural outline—classes, functions, methods, headings, JSON keys with line numbers—without reading the whole file, saving 80–90% of context.
Instructions
Extract structural outline (classes, functions, methods, headings, JSON keys with line numbers) from a file without reading the whole file. Saves 80-90% context.
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": {
"filePath": "<filePath>"
},
"name": "code_outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute file path | |
| maxItems | No |