hub_queue_send
Append a message to a role's queue for cross-agent or cross-node handoffs, delivering it to that role's queue reader.
Instructions
Append a message to a role's queue (queues/..queue.md) for cross-agent/cross-node handoffs. Delivered to whoever calls hub_queue_wait (or hub queue wait) for that role, here or on a mesh-synced peer node. Prose, not cargo: over 16 KB, or carrying a base64/hex run over 2 KB, a git diff, a git bundle or a PEM block, it is refused — put the artifact in a file and send its path, size and sha256. Refused too while the role already holds 50 unread messages or 256 KB: its reader is behind, check it before sending more. And refused when the queue has no reader at all (never read anywhere, nobody of the role present, no role on record), unless new_reader; the owner and broadcast queues never are.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"role": "<role>",
"text": "<text>",
"from": "<from>"
},
"name": "hub_queue_send"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | who is sending — the function you are performing, e.g. "dev-hubd" or "orchestrator". NOT which model you are, and NOT the target role. Required like every other write: the delivered block says "from <sender>" forever. | |
| role | Yes | queue/role to deliver to, e.g. "dev" or "owner" | |
| task | No | the task id this message is ABOUT, if any. Stamped into the delivered block and handed back to the consumer, so a reply (a blocker, a HOLD, a result) can be reported onto the task instead of being lost with the message. A bare number that names one task is stamped as that task's whole id (taskAsGiven keeps what you sent). An id matching no task comes back as taskKnown:false — the ref is still recorded. | |
| text | Yes | ||
| new_reader | No | true for a role whose first session is about to start: a send to a queue with no sign of a reader (never read on any node, no session present, no role on record) is otherwise refused |