messages_search
Search iMessages and SMS by meaning using AI embeddings; filter by contact, group chat, attachments, or date.
Instructions
Semantic search for iMessages/SMS using AI embeddings. Finds messages by meaning. Supports filtering by contact, group chats, specific group name, and attachments.
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": "messages_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results (default 30) | |
| query | Yes | Natural language search (e.g., 'dinner plans', 'about the trip', 'address') | |
| contact | No | Filter by contact: exact Contacts name (full name, first name, or nickname, e.g. 'Dad'), phone number in any format, or email. Includes my replies in that 1:1 chat. | |
| sort_by | No | Sort by relevance (default) or date (newest first) | |
| days_back | No | Only messages from last N days (0 = all time) | |
| has_attachment | No | Filter to messages with attachments (photos, files) | |
| group_chat_name | No | Filter by specific group chat name | |
| group_chat_only | No | Only show messages from group chats |