What it can do.
Search and read mail, pull attachments out and read them (including the text of PDF invoices), tag and file messages one at a time or in batches, reply in thread, and send or forward with a confirmation step you can't talk it out of.
Anything that sends takes draft=true instead, which puts it in your Drafts for you to look at. That path needs no confirmation, because nothing goes anywhere.
Files can be attached to anything you send, though only from directories you've said are allowed. Reading any file on the machine and posting it out is how data walks off a computer, so the default is the attachments folder and widening it is your decision, not something an instruction in an email can talk it into.
| Tool | What it does |
|---|---|
list_folders | Every folder and label, read live each time |
folder_status | Counts, plus the UIDVALIDITY every uid in that folder depends on |
poll_folder | What has arrived since you last looked |
ack_folder | Confirms a batch was handled |
search_mail | Search by text, sender, subject, date range, unread, starred |
search_all_mail | The same search across every folder and label, duplicates collapsed |
get_headers | Headers with SPF, DKIM and DMARC verdicts, and Proton metadata |
read_message | Full headers and body |
list_attachments | Real documents, kept apart from inline images and PGP keys |
read_attachment | Pulls the text out, PDFs included |
view_attachment | Hands back an image attachment so it can actually be looked at |
save_attachment | Writes a file out, deleted again after 15 minutes unless you say otherwise |
purge_attachments | Deletes those files now |
find_thread | The whole conversation, and which messages carry documents |
bulk_mark | Read, unread, star or unstar many messages in one pass |
bulk_apply_label | One label onto many messages |
bulk_remove_label | Takes one label off many messages, gated |
bulk_move | File or Trash many at once, gated |
reply | Replies with correct threading, gated |
reply_all | Same, with your own addresses stripped from Cc, gated |
create_draft | Writes into Drafts, never sends |
update_draft | Replaces a draft, keeping its threading |
delete_draft | Moves a draft to Trash, gated |
send_draft | Sends a saved draft, gated |
unsubscribe | Reports how to unsubscribe, and can send the email form |
mark | Read, unread, star, unstar |
apply_label | Tags a message, leaves it where it is |
remove_label | Takes a label off, leaves the message where it is, gated |
move_to_folder | Files it somewhere else |
create_folder_or_label | New folder or label, gated |
delete_label | Deletes a label, messages keep their place and lose the tag, gated |
bulk_delete_labels | The same for several labels at once, gated |
send | Gated, and can carry attachments |
forward | Gated |
Three things it can't do, and won't pretend otherwise. Folders can be created but not deleted, because a folder is where a message actually lives and deleting one would have to decide what happens to the mail inside it, so that stays a job for the Proton app. Bridge has no access to Proton's server-side filters or auto-forwarding rules, so those stay a manual job in the Proton web app. And nothing here hard-deletes, the furthest it goes is Trash.
Watching for new mail
poll_folder hands back whatever has turned up since you last looked, which is what turns this from something that reads your mail when asked into something that can react to mail arriving.
The first poll on a folder returns nothing on purpose. It notes where the folder currently ends, so switching it on doesn't dump years of backlog into a conversation. It reads nothing as read either.
If you're doing something with each message that you'd rather not do twice, poll with advance=false. You get the batch and a checkpoint, the cursor stays where it was, and polling again hands you the same batch until you confirm with ack_folder. Crash halfway and you pick up where you left off instead of losing the lot. Confirming twice is harmless.
The cursor records the UIDVALIDITY next to the message number, so a folder that resyncs underneath you is spotted rather than acted on. When that happens it re-anchors to the current end and says so, because the alternative is replaying whatever those old numbers now point at.
Getting at attachments
Three ways in, for three different situations. read_attachment pulls the text out and is what you want almost always, invoices included, and nothing touches the disk. save_attachment writes the file out for anything that isn't text, and works if whatever you're using can read files off disk. view_attachment hands an image straight back so it can be looked at, which is the only route to a photo or a scan when the client can't reach the filesystem.
Images only for that last one, on purpose. Encoding a file to send it inline makes it a third bigger and drops it into the conversation as characters, and for a spreadsheet or a Word document that's a lot of context spent on something nothing can read. Images are different because they arrive as an image rather than as text, so they cost about what a picture costs and can actually be seen.
Searching everywhere
A message in Proton lives in one folder but also turns up under every label you've put on it, and again in All Mail. Sweep the lot naively and you get the same mail three times. search_all_mail keys on Message-ID instead, so you get one entry per message with the other places it appears listed underneath, and it scans All Mail last as a safety net rather than treating it as a source. Every hit carries the UIDVALIDITY of the folder it was found in, because those differ per folder and a uid without one isn't safe to act on.
UIDs go stale
IMAP identifies a message by a number that's only meaningful until the folder resyncs. When that happens the number quietly starts pointing at something else, which is how the wrong message gets filed or trashed. Every folder reports a UIDVALIDITY alongside its uids, and if you hand one back with a uid that no longer matches, the tool refuses and asks you to search again rather than acting on the wrong mail.
Conversations aren't messages
Worth knowing before you trust an answer about attachments. Proton's app groups mail into conversations and shows a paperclip if anything in the thread has one. IMAP hands over individual messages with no grouping at all. A reply sitting in your inbox can be completely empty while the original, filed somewhere else, is carrying the PDFs. That's why find_thread exists, and why "no attachments" from a single message is an answer worth checking.