build_batch
Submit several pre-decomposed stories in one call and get back one batchId to track, instead of dispatching build_feature N times yourself. Swarm is a Pro plan feature: the maximum batch size depends on the account plan (up to 50; not available on Free or the base pay-as-you-go account); a batch over the limit is refused with BATCH_SIZE_LIMIT_EXCEEDED and the limit. Each item has the same shape as a single build_feature call (storyTitle, acceptanceCriteria, stackType, existingFiles?, skipTestsFor?) plus its own repoUrl (informational only). Call get_batch with the returned batchId to check aggregate progress.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | 1 to 50 stories to dispatch. | |
| webhookUrl | No | Fires once when every item in the batch reaches a terminal state. Must be supplied together with webhookSecret. | |
| webhookSecret | No | HMAC-SHA256 signing secret (16-256 chars) for the aggregate completion webhook. Must be supplied together with webhookUrl. | |
| idempotencyKey | No | A repeat call with the same key returns the original batchId instead of dispatching again. |