tokendiet_prune_tool_output
Prune noisy CLI, pytest, tsc, or build logs to a token budget while preserving error and traceback anchors for downstream analysis.
Instructions
Prune noisy CLI, pytest, tsc, or build logs to a token budget using the C++20 Order-Preserving Salience Knapsack while keeping error/traceback anchors.
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": {
"text": "<text>"
},
"name": "tokendiet_prune_tool_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| halo_radius | No | ||
| budget_tokens | No |