Question in, budgeted context out
snapshot_answerPlans a question, selects relevant repository files, and returns line-numbered head windows within a token budget, noting why each file is included or skipped.
Instructions
The one-call version of plan-then-read: plan a question, then return each chosen file as a head window with line numbers within the token budget. Every included file says why it is there; every planned file that did not fit says so. Read-only.
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": {
"question": "<question>"
},
"name": "snapshot_answer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Repository root. Defaults to the directory this server was started in. | |
| outDir | No | Snapshot directory, relative to the root, and it must resolve inside the served repository. Defaults to the project configuration's outDir. | |
| question | Yes | What you need to answer. | |
| maxTokens | No | Budget for the whole block (default 20000). | |
| includeTests | No | Include test files (default false). | |
| linesPerFile | No | Head lines per file (default 60). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| omitted | No | ||
| question | No | ||
| usedTokens | No | ||
| budgetTokens | No |