chat_read
Returns chat messages from a cursor, oldest to newest; without a cursor - the latest ones. hasMore tells whether more messages exist in the requested direction; an after cursor returns newer messages, such as replies to a sent one. A task chat without messages yet returns an empty page. Each attachment has attachToken, which can be inserted into a spec / result as is. chatType is the chat type: direct for a direct chat, entity for the chat of a task, bug, feature or product (entityType), group for the rest; quotes and mentions follow it.
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": {
"chatID": "<chatID>"
},
"name": "chat_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | The after cursor from a response: newer messages. | |
| limit | No | Messages to return, 1-100 (default 30) | |
| before | No | The before cursor from a response: older messages. | |
| chatID | Yes | Chat ID; for a task's chat - the task ID |