Search Messages
messages_searchSearch text messages by keyword, newest first, to find what someone texted. Narrow results to one person by handle or contact name and filter by date.
Instructions
Search text messages by content, newest first. Optionally limit to one person by handle or contact name. Use when: finding what someone texted
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 | Max results to return | |
| query | Yes | Text to find (case-insensitive for plain letters) | |
| since | No | Only messages since this ISO 8601 date | |
| handle | No | Only messages with this phone number or email | |
| offset | No | Number of results to skip for pagination | |
| contact | No | Only messages with contacts whose name contains this | |
| response_format | No | Output format: 'json' for structured data, 'markdown' for human-readable text | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| items | Yes | ||
| total | Yes | ||
| offset | Yes | ||
| has_more | Yes | ||
| next_offset | No | ||
| truncation_message | No |