Plan a reading order for a question
snapshot_plan_forSelects the smallest set of snapshot files needed to answer a question within a token budget, ordered for reading with a reason for each pick.
Instructions
Given a question and a token budget, return the smallest set of files from the snapshot that answer it, in reading order, each with the reason it was chosen and the part it lives in. Deterministic: path and symbol matches first, then the imports of the strongest matches, packed to the budget. 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_plan_for"
}
}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, in the user words. | |
| maxTokens | No | Budget for the plan (default 30000). | |
| includeTests | No | Include test files (default false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| notes | No | ||
| skipped | No | ||
| question | No | ||
| usedTokens | No | ||
| budgetTokens | No |