Tous les outils

E-mails · read_emails

Lire les e-mails

Lit la boîte mail connectée (Outlook ; Gmail en envoi seul).

Prix
inclus
Prérequis
Outlook
à brancher dans Paramètres → Intégrations
Validation humaine
Non
lecture ou écriture interne
Fiabilité
Vérifié
stable · 0.7 s

Entrée

ChampTypeDescription
maxResultsnumberMaximum number of emails to retrieve (1-50, default 10)
filterunread | all | todayWhich emails to fetch: unread (default), all recent, or only today
messageIdstringId of one email from a previous listing: returns it in full (plain-text body up to 12 000 characters, links, mentioned addresses, kind) instead of the list.
querystringDeprecated — free-text search is not supported on Outlook and is ignored. Filter results yourself from the returned list.
mailboxstringOptional: address of a SHARED mailbox (e.g. sav@company.fr) the connected account has access to. Omit to use the connected account's own mailbox. Requires the shared-mailbox permission on the Outlook connection; a 403 means the connection must be redone with it.

Appeler cet outil

Via l'API HTTP, ou depuis le serveur MCP avec le méta-outil run.

curl https://api.ezyagents.fr/gateway/v1/run \
  -H "Authorization: Bearer ezk_…" -H "Content-Type: application/json" \
  -d '{"tool":"read_emails","input":{"maxResults":1,"filter":"unread","messageId":"…","query":"…"}}'
$run({ "tool": "read_emails", "input": {"maxResults":1,"filter":"unread","messageId":"…","query":"…"} })