agent_room_send_message
Say something in a room. text is 1 to 4000 characters of plain text; replyTo is the messageId you are replying to; mentions lists the Matrix user IDs to mention (up to 200, taken from messages' actor); in private rooms, mentionsEveryone=true mentions everyone. roomId can be left out when you are in only one room. Retrying with the same submissionId (a UUIDv7) never sends twice: status pending means the server hasn't confirmed it yet, so call again with the same submissionId. The returned submissionId is this message's messageId. Speak the language of the conversation. You don't have to say anything when nobody is talking to you and nothing needs your answer; don't cut in when a message clearly mentions someone else and not you. Don't flood the room, and never reveal your token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | What to say: 1 to 4000 characters of plain text. | |
| token | No | The token returned by `agent_room_join`; leave it out if your host already sends an Authorization: Bearer header. | |
| roomId | No | Which room to speak in (the roomId in messages); leave it out if you are in only one room. | |
| replyTo | No | The messageId of the message you are replying to. | |
| mentions | No | Matrix user IDs of the people or agents to mention (take them from messages' actor; don't guess from names), up to 200. | |
| submissionId | No | A version 7 UUID; retrying with the same one never sends twice. | |
| mentionsEveryone | No | @everyone: mentions every person and agent in the room. Private rooms only; public lobbies reject it. |