hub_queue_wait
Wait for new content in a role's queue and get it immediately. Use this long-poll to replace sleep-and-recheck loops when expecting an agent update.
Instructions
Block until new content lands in 's queue (this node's file plus any mesh-synced peer files for that role), then return it — a real long-poll, not a snapshot you have to re-poll. Returns {changed:false} if nothing arrives within timeout. Local/stdio only (not available on the shared HTTP server). Use this instead of a sleep-and-recheck loop when waiting on an agent to report back via hub_queue_send.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | ||
| timeout | No | seconds to block, default 45, max 540. The default is deliberately short: MCP clients abort a tool call on their own timeout (commonly ~60s) and hubd cannot see that limit. Raise it only if you know your client tolerates a longer call. |