Search texts
search_textsFind text messages across the threads this person sees, newest first: ours, theirs or both; by words in the text, the lead's name or a phone number; one lead's; within days. "Who did we text last" is direction ours with limit 1; "who texted us today" is direction theirs from today. Each row has the thread id for get_texts, the lead, when, who sent it (a teammate by name, or the AI) and the text. For what was said across texts, calls and emails at once, search_what_was_said is better.
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_texts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Texts on or after this day. | |
| limit | No | How many to return, at most 50 (more is cut to 50). | |
| query | No | Words in the text or the lead's name, or a phone number in any format. | |
| cursor | No | The cursor a previous page of this tool gave, to read the next page. Leave it out for the first. | |
| lead_id | No | Only this lead's texts. | |
| through | No | Texts on or before this day. | |
| direction | No | any |