search_messages
Search iMessage and SMS messages by text content and filter by contact name or specific chat to locate conversations.
Instructions
Search iMessage/SMS messages by text content. Use "contact" to filter by name (automatically resolves to chat IDs). Note: Only searches locally-cached messages.
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": {
"query": "<query>"
},
"name": "search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results (default: 50) | |
| query | Yes | Search term to find in message text | |
| chatId | No | Filter search to a specific chat | |
| contact | No | Filter by contact name, phone, or email (resolves to chat IDs automatically) |