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.
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. |