repo_run_test
Execute allowlisted test, build, lint, and check commands on local repositories, capturing exit codes, logs, and artifact screenshots in structured results.
Instructions
Run one or more allowlisted repository verification commands.
The allowlist covers test/build/lint/check profiles for common Python,
Go, Node, Maven, and Gradle repositories. command_key preserves the
original single-command API. command_keys runs a bounded sequential
batch; the complete batch is validated before the first command starts.
Every started command returns command, exit_code, stdout, stderr, duration and truncation metadata. Timeout/output-limit termination is a structured failed result so captured evidence is not discarded.
Commands may emit MCP_IMAGE:<repository-relative-path> lines for
PNG/JPEG files under the configured test artifact directory; screenshots
are returned as native MCP image content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command_key | No | ||
| command_keys | No | ||
| stop_on_failure | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| argv | No | ||
| batch | No | ||
| images | No | ||
| status | Yes | ||
| stderr | No | ||
| stdout | No | ||
| command | No | ||
| results | No | ||
| success | Yes | ||
| exit_code | No | ||
| remaining | No | ||
| requested | No | ||
| repository | Yes | ||
| returncode | No | ||
| command_key | No | ||
| duration_ms | Yes | ||
| command_kind | No | ||
| image_warnings | No | ||
| completed_count | No | ||
| requested_count | No | ||
| stop_on_failure | No | ||
| timeout_seconds | No | ||
| stderr_truncated | No | ||
| stdout_truncated | No |