fetch_session_inbox
Read or drain your session inbox by retrieving newest-first messages, including bodies when needed; preview unread receipts without marking them read.
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. Swarmail is a trusted local service; session identity selects inboxes and is not authentication.
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. |