Agent Send
agent_sendSends a coordination message to an agent on ANOTHER of the user's machines (get its handle from agents_list). Use it to hold merges during a release ('freeze'), announce a PR is up ('pr-ready'), hand work over ('handoff') or say a release shipped ('release-out'). Without to_agent it reaches every agent on that machine, which is what you want for a freeze. A DIRECTED to_agent must be one that is ALIVE — take it from agents_list, never invent it: if it is not alive you get a 404 listing the agent_ids that ARE alive on that machine, so you can re-address to one of those instead of the message being silently lost. The recipient gets it on its next agent_inbox poll — this is not instant, and it is not a request you can force: the other agent decides what to do.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Handle of the target machine, from agents_list | |
| payload | No | The content: reason, PR number, branch… Keep it small (max 16KB). | |
| msg_type | Yes | One of: ping, pr-ready, freeze, freeze-clear, release-out, handoff, note | |
| to_agent | No | Optional: a single agent_id on that machine (it must have checked in). Omit to reach all of them. | |
| from_agent | No | Your own agent_id, so the recipient knows who is asking |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||