ctx_outline
Generate a compact file outline with declarations, signatures, line ranges, and import counts before reading the full file. Cap returned tokens with a budget to reduce context usage.
Instructions
Skeleton of one file: declarations and signatures with line ranges, first line of doc comments, imports collapsed to a count. Usually a small fraction of the file. Use before reading a file.
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": "ctx_outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to the project root. | |
| budget_tokens | No | Hard cap on the tokens returned (estimate; default 2000). |