compress_shell
Compress CLI output from git, npm, cargo, or pytest while preserving errors and key details, so AI agents can fit more command results into context windows.
Instructions
Compress CLI output (git, npm, cargo, pytest, etc.) preserving errors and key info.
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": "compress_shell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| command | No | ||
| max_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |