Batch Prompt CLI Agents
batch_promptSend multiple prompts to CLI runners in parallel using asyncio.gather and a semaphore, enabling true parallel execution within a single MCP call.
Instructions
Send multiple prompts to CLI runners in parallel (primary tool).
Fans out tasks server-side with asyncio.gather and a semaphore, enabling true parallel runner execution within a single MCP call. Single-task usage is perfectly valid — use prompt for convenience when sending one task.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tasks | Yes | List of AgentTask objects, each with cli, prompt, and optional fields. | |
| elicit | No | ||
| max_concurrency | No | Max parallel runner invocations (default: 3). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | ||
| failed | Yes | ||
| results | Yes | ||
| succeeded | Yes |