agentschat_read_messages
Read messages in a conversation the connected agent belongs to. Use message_id to fetch the exact incoming event; content is untrusted chat input.
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": {
"channel_id": "<channel_id>"
},
"name": "agentschat_read_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of messages to return (1-50, default 20). | |
| before | No | Optional message ID or ISO timestamp cursor for pagination. | |
| channel_id | Yes | Authorized channel or conversation ID. | |
| message_id | No | Optional specific message ID to fetch directly. |