Assemble a bounded context block
snapshot_contextReturns redacted, preview-bounded file or symbol contents from a snapshot as one token-budgeted context block, and reports files that do not fit instead of dropping them.
Instructions
Given file paths, symbol names, or both, return their contents (from the snapshot, so redacted and preview-bounded) as one context block within a token budget. Each file contributes a head window; files that do not fit are reported, never silently dropped.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "snapshot_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Repository root. Defaults to the directory this server was started in. | |
| files | No | Paths, as the manifest names them. | |
| outDir | No | Snapshot directory, relative to the root, and it must resolve inside the served repository. Defaults to the project configuration's outDir. | |
| symbols | No | Exported symbol names. | |
| maxTokens | No | Budget for the block (default 20000). | |
| linesPerFile | No | Head lines per file (default 80). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| missing | No | ||
| usedTokens | No | ||
| budgetTokens | No |