pilot_publish
Publish a message to a topic on a peer's pub/sub channel to trigger event-driven agent coordination. Subscribers receive the payload asynchronously, allowing peers to react to events.
Instructions
Publish a message to a topic on a peer's pub/sub channel. Subscribers (pilot_subscribe) receive it asynchronously. Use for event-driven agent coordination — e.g. publish "build-complete" to a topic that peers monitor. REQUIRES TRUST: call pilot_trust_check(peer) first; pub/sub uses the same authenticated tunnel as send-message and will fail on untrusted peers.
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": {
"peer": "<peer>",
"topic": "<topic>",
"message": "<message>"
},
"name": "pilot_publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| peer | Yes | Peer hostname or address hosting the topic. | |
| topic | Yes | Topic name. | |
| message | Yes | Published payload. |