send_message
Send structured data between agents or pipeline steps using configurable channels. Messages persist across restarts.
Instructions
Send a message to a channel for inter-agent communication. Use this to pass structured data between pipeline steps or between any agents.
Channel conventions:
{run_id} — broadcast to all steps in a pipeline run
{run_id}:{step_name} — targeted to a specific step
any string — ad-hoc channel for custom messaging
Messages are persisted to disk (survives restarts). Uses JSONL format for concurrent-write safety.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory. Defaults to current working directory. | |
| from | No | Sender identifier (e.g., step name or task description). | |
| channel | Yes | Target channel. Use run_id for broadcast, run_id:step_name for targeted. | |
| payload | Yes | Message payload (any JSON-serializable value). |