run_compact
Run allowlisted test, build, or lint commands without a shell and return only exit code, failures, and the full log path to reduce context tokens.
Instructions
Run an allowlisted test/build/lint command (no shell). Returns exit code + failures only; full log path included.
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": {
"command": "<command>"
},
"name": "run_compact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| command | Yes | e.g. "npx vitest run", "pytest -x" | |
| maxLines | No | default 80 | |
| timeoutSec | No |