mark_as_read
Mark a chat as read. Without message_id it marks the latest incoming message (and everything before it). If providing message_id for a group chat, sender_jid must also be provided. The sender sees blue ticks (in one-to-one chats, only if the user has read receipts on), and the chat also shows as read on the user's phone, including a chat marked unread. Reading a chat with read_chat_history doesn't mark it as read; call this only when the user asks.
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": {
"jid": "<jid>"
},
"name": "mark_as_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jid | Yes | The chat to mark as read: a JID or a phone number with country code. | |
| message_id | No | Optional. A message `id` from read_chat_history; it and everything before it are marked read. Omit to mark the latest incoming message. | |
| sender_jid | No | Required with message_id in group chats: that message's `sender_jid` from read_chat_history. |