openclaw_sessions_send
Send a user message into an existing OpenClaw session. The agent processes your message asynchronously and streams the reply; call openclaw_sessions_preview afterwards to retrieve the result.
Instructions
Send a user message into an existing session. Wraps sessions.send. The agent processes async and streams the reply via session.message events; call openclaw_sessions_preview afterwards (with the session's composite key) to see the result. Use either text or message — gateway accepts both names depending on version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Session id (sessionId UUID). | |
| text | No | Message text. Preferred field name in newer gateway versions. | |
| message | No | Message text. Older alias for `text`; pass either, not both. | |
| 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. |