Mark the chat as read
chat_mark_readMarks chat as read up to a specific message, reducing the signed-in member's unread count and updating the visible read position; older message IDs are ignored.
Instructions
Records that the signed-in member has read the chat up to a message, which lowers the chat_unread count and updates the read position other members see in chat_messages. The marker only moves forward: an older message id is ignored, and the response says whether the marker moved. An id that is not in this flat gives message_not_found. Use this after reading with chat_messages; it does not read or send anything.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "chat_mark_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wgCode | No | Share code of the flat (code from wg_list). Leave it out when the account belongs to one flat. | |
| lastReadMessageId | No | Id of the newest message the member has read, from chat_messages. Send null or omit it to reset the marker. |