session_send
Send events to a specific session or broadcast to all sessions in a project. Use intents and pointers to communicate without bulk content, with payloads capped at 16KB.
Instructions
Send an event to another live session (direct) or to every session in the project (broadcast, by omitting to_session). Events carry intents and pointers, not bulk content: payloads are capped at 16KB, so store large context in project state and send a reference. Delivered once per receiving session, kept for 24h.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Short event type, e.g. 'handoff', 'heads-up', 'done', 'request'. | |
| payload | No | Event body (max 16KB). Any string including JSON. | |
| session_id | No | Sender session id. Defaults to the current session. | |
| to_session | No | Target session id from session_peers. Omit to broadcast to the whole project. | |
| project_path | No | Project scope for broadcast delivery. Defaults to unscoped. |