Chat by ID
messenger_get_chat_by_id_v2Retrieve full details of a specific Avito chat by its chat ID: participants, linked item, context, and last message. Read-only operation for known chat IDs.
Instructions
Returns the details of a SINGLE chat by a known chat_id: participants, linked item, context, and the last message. Read-only. Use it when the chat_id is already known; to find a chat_id or get a list of conversations, use messenger_get_chats_v2. The conversation messages themselves are returned by messenger_get_messages_v3.
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": {
"chat_id": "<chat_id>"
},
"name": "messenger_get_chat_by_id_v2"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Chat identifier (string) obtained from messenger_get_chats_v2. | |
| user_id | No | Avito account ID that owns the chat. Defaults to Profile_id from .env. |