build_context
Builds a compact, task-specific context under a token budget by combining stored and inline records; returns rendered context with provenance, omissions, and a reproducible optimization report.
Instructions
Construct a compact, task-specific context under a token budget. Combines stored records with any inline records; returns the rendered context plus provenance, omissions and a reproducible optimization report. Token counts are estimates unless a custom estimator is configured server-side.
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": {
"task": "<task>"
},
"name": "build_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | The current task description. | |
| query | No | Additional relevance terms. | |
| records | No | Optional inline records to include in addition to stored records. | |
| tokenBudget | No | Override the server token budget. |