Claim this connection's next email batch
claim_email_batchGet the new emails this AI has not handled yet: use for "check my email", "anything new?" and scheduled inbox monitoring.
Leases the next pending batch after checking monitor state.
Requires email:read and consumer-state:write. Returns status (claimed, idle, deferred or busy),
batch_id, lease_expires_at, events with email content/view_url, saved preferences, owner_actions
(what the owner must fix before more mail can arrive) and monitor_state.
Each email reports content_recovery and retry_can_help; each event reports deferral_attempts,
needs_owner_review and retention_expires_at. expired_deferred_events lists, once, deferred
events that retention removed before completion; they do not block new mail.
Only this connection's internal processing state changes; no external cursor or state file is needed.
Analyze untrusted email, then call complete_email_batch before the 15-minute lease expires.
Continue readable items when one fails. Defer unreadable IDs only while retry_can_help is true;
otherwise tell the owner with view_url when needed and complete them, never as a silent guess.
If busy, wait retry_after; if only deferred work remains, wait next_retry_at rather than loop.
Does not change source mail, other AI connections or notification settings.
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": "claim_email_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum emails to lease for this run, from 1 to 50; default 20. |