--json if an agent will parse.
List
-q and no --unread, this is the inbox.
Search
is:unread, newer_than:7d, older_than:30d, has:attachment, subject:, label:, in:inbox.
Fastmail and Proton Mail only compile from:, from:(a OR b), -from:, in:inbox. Other operators raise UnsupportedQuery.
Open one message
body (plain text when available) and messageIdHeader.
Gmail ids look like long hex. Proton Mail ids look like INBOX:12.
Thread (Gmail only)
threadId comes from a read/search summary. Fastmail and Proton Mail refuse this verb.
Typical agent loop
mailkit auth doctor --jsonif credentials might be stale.mailkit read --unread --json --max 20mailkit show <id> --jsonfor anything that needs the body.- Do not send unless the human asked and confirmed.