compile_context_pack
Ranks files, logs, JSON, and docs against a task query, then compiles a token-budgeted XML context pack with verbatim top files, dependency skeletons, clustered logs, and a dropped-file list.
Instructions
BM25-ranked, token-budgeted multi-artifact context compiler. Ranks source files, logs, JSON dumps, and docs against a taskQuery, keeping top files verbatim, skeletonizing supporting dependencies, clustering logs, and outputting a strict XML context pack + dropped-file manifest.
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": {
"taskQuery": "<taskQuery>",
"files": "<files>"
},
"name": "compile_context_pack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| fullTopK | No | How many top-ranked code files to preserve verbatim when budget permits (default: 2). | |
| taskQuery | Yes | Natural-language task, bug report, or target symbols to rank relevance against. | |
| tokenBudget | No | Strict max token budget for the compiled bundle (default: 8000). |