trim_tests
Shrinks test-runner output from pytest, unittest, jest, go test, and cargo test down to failures and summary, so you can skip reading whole test logs; omitted parts stay available via expand.
Instructions
Shrink test-runner output (pytest, unittest, jest, go test, cargo test) to the failures and the summary. Use it instead of reading a whole test log. Omitted parts can be fetched with expand.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "trim_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File to read, inside the server's root folder. Preferred way to pass input. | |
| text | No | The text itself. Only for small inputs: large text costs tokens to send. | |
| command | No | A command to run and trim (no shell). Only works if started with --allow-run. | |
| max_failure_lines | No | Most lines kept per failure. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |