get_private_messages
Retrieve historical private messages between two users in a specified time range. Provide user IDs and optional start/end timestamps to filter messages.
Instructions
Retrieves historical private messages between two users within a specified time range.The time range is defined by startTime (newest) and endTime (oldest),with endTime must be earlier than startTime.
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": {
"user_id": "<user_id>",
"target_id": "<target_id>"
},
"name": "get_private_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | ID of the user whose messages are being queried | |
| target_id | Yes | ID of the other user in the private conversation | |
| end_time | No | End timestamp in milliseconds (default: 24 hours before end time) | |
| start_time | No | Start timestamp in milliseconds (must be later than endTime, default: current time) | |
| page_size | No | Number of messages per page (default: 50, max: 100) |