openclaw_chat_send
Send a message to an active chat session using a composite session key and message body. Triggers an agent response.
Instructions
Send a message into a chat session via the gateway's chat layer. Wire format (verified live against gateway 2026.4.12+): requires sessionKey (composite, e.g. 'agent:main:main' from openclaw_sessions_list), message, and idempotencyKey (auto-generated UUID if omitted). The pre-0.5.x agentId/sessionId/text shape is rejected by the gateway. Destructive — triggers an agent turn.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Message body. | |
| instance | No | Optional OpenClaw instance to route this call to (e.g. 'default', 'work'). Falls back to the active default instance, or the OPENCLAW_GATEWAY_URL/TOKEN env vars when set. List configured instances with openclaw_setup_list. | |
| sessionKey | Yes | Composite session key from openclaw_sessions_list (e.g. 'agent:main:main', 'agent:main:cron:<id>'). | |
| idempotencyKey | No | Unique key to dedupe retries. Auto-generated UUID if omitted. |