loop_next_task
Retrieves the next task for execution based on priority, time horizon, and readiness. Automatically unblocks tasks when dependencies complete.
Instructions
Get the next task to execute — sorted by priority x time horizon x readiness.
Pinned and critical tasks are picked up first. short > mid > long priority. BLOCKED tasks auto-unlock when dependencies complete; no manual handling needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team_id | Yes | Team ID or name | |
| agent_id | No | Specify Agent ID to prioritize tasks assigned to that Agent (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||