log_sanitize
Sanitizes build, test, and terminal outputs by stripping ANSI noise, collapsing routine compiler messages, and isolating failure stack traces to prevent token flooding in AI context.
Instructions
Sanitize build, test, or terminal command outputs. Strips ANSI noise, collapses routine compiler stdout, and isolates actionable failure stack traces to protect context window from token flooding.
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": {
"rawOutput": "<rawOutput>"
},
"name": "log_sanitize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exitCode | No | ||
| maxChars | No | ||
| rawOutput | Yes | ||
| projectRoot | No | ||
| taskContextId | No | ||
| includeStructured | No |