spawn_and_continue
Split your work by spawning subtasks and a continuation that resumes after they complete, with automatic dependency rewiring in your DAG.
Instructions
Split your work: spawn subtasks and a continuation that resumes after they complete.
Use when you discover you need additional work done before you can finish. The DAG rewires automatically — your downstream dependents will wait for the continuation, not your partial result.
Args: step_id: Your step ID. partial_output: What you've done so far. subtasks: List of {action, agent?} dicts for work that needs doing. continuation: Action description for the step that resumes your work after subtasks complete.
Returns: IDs of created subtasks and the continuation step.
Note: This tool is hidden at max depth — you must complete atomically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step_id | Yes | ||
| partial_output | Yes | ||
| subtasks | Yes | ||
| continuation | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||