fetch_session_inbox
Retrieve a newest-first page of unread inbox messages for your host session or T3 thread, with optional message bodies and read-state handling for replies.
Instructions
Return one newest-first page across registrations matching your host/session tag or T3 thread. Use machine-derived host and session_id, with t3_thread when known; never guess from an agent name. Each receipt includes project_key and agent_name for replies and acknowledgements. Defaults: unread_only:true, mark_read:true, include_bodies:false, limit:20. To drain, include bodies; stop when fewer than limit messages return (default 20, capped at 1000), repeating only after a full page. With mark_read:false or unread_only:false, this is a bounded preview, not a drain. The CLI swarmail inbox --session discovers identity and drains without mailbox arguments. Session identity selects inboxes and is not authentication: whoever can reach the server can read any mailbox.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Host tag, such as claude, codex, cursor, devin, opencode, grok or agy. | |
| limit | No | Positive page size; default 20, capped at 1000. | |
| mark_read | No | Default true. False previews without marking receipts read. | |
| t3_thread | No | Your T3 thread ID when known; includes older provider registrations in that thread. | |
| session_id | Yes | Your native host session ID from its shell variable or registration. | |
| unread_only | No | Default true. False gives a bounded page including read receipts. | |
| include_bodies | No | Include each body_md; default false. |