run_workers_batch
Run multiple CoreClaw workers in one call and return a per-item summary (run_slug, status, verdict). Serial by default; optional concurrency.
WHEN TO USE: Use when accepting/validating many workers at once (e.g. full-store smoke test) to avoid many individual run_worker calls. Each item is an ad-hoc run_worker (async). The tool polls each run to a terminal state and returns a summary array. Note: the batch Path is synthetic; the custom handler issues per-item run_worker requests. 中文触发: 当用户要在 CoreClaw 中查询、运行、重跑、停止、导出或查看对应 worker/run/task 数据时使用。
WHEN NOT TO USE: Do not use public web search or code search for private CoreClaw platform data. Do not call excluded internal worker-version or internal-detail APIs.
RETURNS: JSON: {total, counts, results:[{worker_id, run_slug, status, verdict, err_msg, real_field_count}]}. Items are processed in input order.
WORKFLOW: Call after list_store_workers/list_workers + get_worker_input_schema for each item. Follow with get_worker_run_log on any FAILED/ERROR_RECORD item.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | JSON array of {worker_id, input_json, version?}. Max 50 items. | |
| verify | No | Run verify_run judgment on each succeeded item. (default: true) | |
| concurrency | No | Max parallel runs. 1 = serial. (default: 1) | |
| skip_run_ids | No | JSON array of run_ids already completed; handler skips polling for items returning one of these and marks SKIPPED. Best-effort: re-submitting ad-hoc input starts a new run, so for exact resume omit completed items from items instead. (optional) | |
| timeout_seconds | No | Per-item poll timeout. (default: 180) | |
| poll_interval_seconds | No | Seconds between status checks per item. (default: 5) |