List messages
nextcloud_list_messagesRead a conversation's chat history in reverse chronological order, with an optional limit and last-known message ID for pagination. Use it to retrieve recent messages or poll for new messages.
Instructions
Read the chat history of one conversation, newest first.
GET /ocs/v2.php/apps/spreed/api/v1/chat/{token}
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": {
"token": "<token>"
},
"name": "nextcloud_list_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| token | Yes | ||
| last_known_message_id | No |