chat.send
Sends a chat message to the stream's chat, as the account signed in on each platform.
JSON-RPC 2.0chat.write
Without platform, it goes to every connected chat. Chat must be connected in Outputs, on the destination's Chat.
Parameters
- textstringrequiredThe message.
- platformstringOnly this platform.
- channelstringOnly this channel.
- reply_tostringA message's platform id, to reply to it.
Result
- sentnumberHow many chats it went to.
- failedstring[]Why it didn't reach the others.
Errors
A state error (-32005) with nothing to send, no chat connected, or when every send failed.
From an AI agent
The MCP server's send_chat reaches this method.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "chat.send", "params": { "text": "Back in five!" }}lightair call chat.send '{"text":"Back in five!"}'const result = lightair.call("chat.send", {"text":"Back in five!"});Result
{ "sent": 2, "failed": [] }