search_messages
Search iMessage history by text, sender, chat, or date range, including encoded message bodies that plain SQL misses.
Instructions
Search message history by text, sender, chat, or date range. Reads bodies from both the text column and the encoded attributedBody blob, so it finds messages that plain SQL cannot.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Filter by sender handle, partial match. | |
| limit | No | Max results (default 50, max 500). | |
| query | No | Substring to look for, case-insensitive. | |
| since | No | ISO date lower bound. | |
| until | No | ISO date upper bound. | |
| chatId | No | Restrict to one chat GUID. |