pytest_runs
Trigger smoke, unit-runtime, unit-admin, or all pytest suites in the background and return a job ID for polling; retrieve a run or list recent runs.
Instructions
Pytest suite runs (agent_test_runs). action: trigger (suite ∈ smoke|unit_runtime|unit_admin|all — launches a background job and returns job_id IMMEDIATELY; this differs from the portal's /admin/tests page, which blocks the HTTP request until pytest finishes — poll via jobs action=get or pytest_runs action=get) | get (run_id) | list (recent runs). The trigger runs in this engine's own container against the local checkout (not env-scoped, unlike the eval/e2e tools' env= param) and returns a job_id to poll via the jobs tool.
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": "pytest_runs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Config branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves. | staging |
| limit | No | Maximum number of rows to return. | |
| suite | No | Which pytest selection to run. | smoke |
| action | No | Operation to run: trigger | get | list. The tool description lists what each action needs. | list |
| run_id | No | agent_test_runs UUID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |