compress_terminal_log
Compress noisy terminal, pytest, and compiler output by stripping ANSI codes, progress bars, and passing tests while isolating root-cause tracebacks and assertion errors to reduce token bloat.
Instructions
Compress noisy terminal, pytest, or compiler stdout/stderr by 80-97%. Strips ANSI codes, progress bars, and passing tests while strictly isolating root-cause tracebacks and assertion errors to stop thinking token bloat.
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": {
"raw_log": "<raw_log>"
},
"name": "compress_terminal_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw_log | Yes | Raw terminal output with ANSI sequences, spinners, or test frames. | |
| max_chars | No | Maximum character length for compressed text (default: 1200). |