opencode_wait_for_task
Long-poll delegated tasks until completion or timeout. Use 'all' mode to wait for all tasks, or 'any' to return when one finishes.
Instructions
Long-poll one or more delegated tasks until they finish or the timeout elapses. Use mode 'all' to wait for all tasks, or 'any' to return as soon as one completes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'all': return when all tasks finish, 'any': return when one finishes | all |
| task_ids | Yes | IDs of tasks to wait for | |
| timeout_ms | No | Max time to wait in milliseconds (default 120000) | |
| poll_interval_ms | No | Time between status checks in milliseconds (default 2500) |