mesh_watch
Watch a mesh topic for inbound facts for a set duration, returning each event with its verified publisher; call again to keep monitoring.
Instructions
Watch a mesh topic for inbound facts for up to duration_seconds, then return whatever arrived, each with its verified publisher. This call BLOCKS for the full duration (or until count events arrive, whichever is first) -- there is no standing subscription to poll later; call this again to keep watching. Realm defaults to io.macula. Presence heartbeats are ordinary facts on "agent.hello"/"agent.goodbye" -- watch those directly to react to an arrival/departure yourself instead of polling mesh_agents. Bytes in event payloads appear as {"$bytes": ""}; pass them back in the same form. dropped: events that reached this server's subscription and were discarded (a subscription's inbox holds 256 events and discards the newest while its reader is behind), since it began; 0 means none were discarded, null means nothing is listening.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Stop early once this many events have arrived. | |
| realm | No | 32-byte realm id as hex (64 chars) the topic is scoped to. Omit for io.macula. | |
| topic | Yes | Topic name (e.g. 'chat.demo'). | |
| duration_seconds | No | How long to watch, in seconds (max 3600). |