Johto Data Context Pack
context_packPOST documents or text chunks plus a token budget. Returns deduplicated, query-ranked, whitespace-compressed context that fits the budget, with source offsets and a token estimate. Deterministic, no LLM. Costs $0.01 USDC per call via x402. Without payment, the call returns the x402 payment requirements; retry with an X-PAYMENT or PAYMENT-SIGNATURE header, or params._meta["x402/payment"].
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": {
"documents": "<documents>"
},
"name": "context_pack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Question to rank passages against | |
| budget | No | Token budget | |
| documents | Yes |