Task Wakeup Wait
nucleus_wakeup_waitQuick scan for a PENDING task. Returns the task directly if one is available, or None if no task is ready within the timeout.
Default timeout is 5s (non-blocking). The agent should NOT loop on this — tasks arrive via relay push. This is a fallback for when the agent wants to check for tasks without waiting for a relay.
No args needed — the role is auto-detected from posture (.brain/posture/current.json) or NUCLEUS_AGENT_ROLES env var.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skills | No | comma-separated skill filter (optional). | |
| agent_id | No | identifier for claiming (auto-detected if empty). | |
| auto_claim | No | if True, atomically claim the task before returning. | |
| required_role | No | role scope filter. Auto-detected from posture if empty. | |
| timeout_seconds | No | max wait (default 5s, 0 = instant burst, max 1800). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||