Send chat message
chat_sendSend from the widget. Widget only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"hub": "<hub>"
},
"name": "chat_send"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hub | Yes | hub key | |
| body | No | message text | |
| files | No | ids of files uploaded for this message | |
| sticker | No | sticker name instead of text | |
| reply_to | No | id of the message this one replies to |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| seq | Yes | ||
| via | Yes | ||
| body | No | ||
| kind | Yes | ||
| mine | No | ||
| emoji | No | ||
| files | Yes | ||
| author | Yes | ||
| deleted | No | ||
| sticker | No | ||
| reply_to | No | ||
| author_id | No | ||
| edited_at | No | ||
| created_at | Yes |