Search Email Bodies
mail_search_bodySearch full-text content inside email bodies, not just subjects or senders, to find messages mentioning specific topics. Build the FTS index first, then paginate results.
Instructions
Search email body content using full-text search. Searches inside the actual email text, not just subject/sender. Requires the FTS index to be built first (use mail_fts_index). Returns pagination metadata. Use when: searching for specific content within emails, finding messages mentioning a topic
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": "mail_search_body"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results to return | |
| query | Yes | Search term(s) to find in email bodies | |
| offset | No | Number of results to skip for pagination | |
| account | No | ||
| mailbox | No | INBOX | |
| 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 |