read_recent_messages
Retrieve recent iMessage conversations with a contact by phone number. Specify how many messages to fetch, up to 200.
Instructions
Read the recent X messages from the iMessage app between the user and the person with the phone number. X is defined based on the value of recent_message_count
Args: phone_number: The phone number of the person you want to retrieve the chat from recent_message_count: The recent messages to retrieve, can be a maximum of 200
Returns: A list of recent messages in the chat
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": {
"phone_number": "<phone_number>"
},
"name": "read_recent_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone_number | Yes | ||
| recent_message_count | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |