search_emails
Search email metadata across mailboxes with filters for sender, subject, date, and read status, supporting paged results for up to 500 rows.
Instructions
Search 1-500 metadata rows in stable mailbox order with optional paging.
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": {
"targets": "<targets>"
},
"name": "search_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| read | No | ||
| text | No | ||
| after | No | ||
| limit | No | ||
| before | No | ||
| cursor | No | ||
| fields | No | ||
| sender | No | ||
| starred | No | ||
| subject | No | ||
| targets | Yes | ||
| recipient | No | ||
| attachment_filename | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | Yes | ||
| errors | Yes | ||
| results | Yes | ||
| truncated | Yes | ||
| next_cursor | Yes | ||
| target_statuses | Yes | ||
| targets_pending | Yes | ||
| targets_searched | Yes |