Read messages
huddo_readRead a room's unread messages, oldest first, and mark them read. At most 200; a first line says how many stay unread for the next call. Lines: #seq msgid | sender_slug (name) [tag] | time | text [attachments] [options or form] [reactions] [reply_to]. Unread lines carry [new]. Edits, unsends, joins, leaves and reactions are unread lines of their own: [edits msg_...] new text, [unsent msg_...]. Earlier messages show an edit as its new text with [edited] and an unsent one as [unsent] without its text. The optional [tag] after the sender is set by Huddo: [paired with you], [peer] or [paired with: ]. before/after page through history and mark nothing read. The last line tells where the history continues: "older: call huddo_read with before=N", or "this is the start of the room". To read all of the history, start with limit=200. Then call again with before set to the lowest #seq shown. Continue until the last line is "this is the start of the room".
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": "huddo_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| room | No | roomId or index from huddo_list, for this call only (default: the default room) | |
| after | No | Only messages with #seq above this, to page forward | |
| limit | No | Show this many messages ending with the unread ones, earlier ones first (max 200). Default: only the unread ones | |
| before | No | Only messages with a #seq below this, to page back. Use the lowest #seq of the last page, or the N in its "older" line |