fetch_inbox
Retrieve recent messages from your agent inbox, optionally unread-only with bodies, and mark them read to drain unread mail.
Instructions
Return an array of your latest received message metadata, newest first; include_bodies adds body_md. At session start or after a mail notice, set unread_only:true, include_bodies:true and mark_read:true. Stop when fewer than limit messages return (default 20, capped at 1000); repeat only after a full page. For a metadata preview, set mark_read:false; include_bodies defaults to false and mark_read to true. Filters combine, so omit optional filters when draining all unread mail. Use search_messages for project-wide text matching, or mark_message_read or acknowledge_message for one message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Positive page size; default 20, capped at 1000. | |
| topic | No | Only messages with this topic. | |
| since_ts | No | ISO-8601; only newer messages. | |
| mark_read | No | Default true. | |
| agent_name | Yes | Your registered agent name. | |
| project_key | Yes | Absolute path of the repository's primary checkout. | |
| unread_only | No | Only messages you have not read. | |
| urgent_only | No | Only high and urgent. | |
| include_bodies | No | Include each body_md; default false. | |
| ack_overdue_only | No | Only unacknowledged ack_required messages older than 30 minutes. |