Search emails
search_emailsFind emails across the leads this person sees, newest first: by words in the subject, the body, the sender's address or the lead's name; theirs or ours; only the ones still waiting for an answer ("who emailed us back and hasn't heard from us"); within days. Each row has the email id for get_email and the lead. 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_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Emails on or after this day. | |
| limit | No | How many to return, at most 50 (more is cut to 50). | |
| query | No | Words in the subject, body, sender's address or lead name. | |
| 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 emails. | |
| through | No | Emails on or before this day. | |
| waiting | No | Only theirs that nobody has answered yet. | |
| direction | No | any |