Read a conversation
vk_messages_get_historyRetrieves message history for a VK community conversation, newest first, using the person's user ID (peer_id). Requires a community token with messages access.
Instructions
Read the messages of one conversation in your community's inbox, newest first. peer_id is the person's user ID, as vk_messages_get_conversations shows it. Needs a community token with the messages right.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | How many messages to return (default 20, max 200) | |
| offset | No | Offset for pagination | |
| peer_id | Yes | User ID of the person the community is talking to |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Total number of matches on VK, which is usually larger than the returned page | |
| items | Yes | Messages, newest first; names are in profiles | |
| pagination | No | Where this page sits in the whole result. Call the tool again with offset set to next_offset to continue; when next_offset is null there is nothing left to fetch. |