add_subtasks
Atomically create one or more subtasks under an existing parent task. All children inherit the parent's project. Returns the created ids. Up to 25 subtasks per call. Use this instead of calling create_task repeatedly when decomposing a claimed task — single transaction, single tool-call budget slot, atomic rollback on any failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parentId | Yes | The parent task id. Must be a task the caller can see. | |
| subtasks | Yes | 1–25 subtasks to create. Each item mirrors the create_task shape. | |
| idempotencyKey | No | Optional idempotency key. Pass a stable unique value (e.g. a UUID) to make this create safe to retry: calling again with the same key within 24h - even from a new session after a reconnect - replays the original result and creates no duplicate. Org-scoped; works across conversations. |