Proton Mail
v0.3.0Read, search and send Proton Mail through Proton Mail Bridge, with sending kept on approval.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_folders
List every folder and label of the mailbox (labels appear as 'Labels/<name>', folders as 'Folders/<name>').
list_emails
List the most recent emails of a folder, newest first (headers only).
| Parameter | Type | Description |
|---|---|---|
folder | string | |
limit | integer | |
unread_only | boolean |
search_emails
Search emails in a folder, newest first (headers only). from_/to/subject/text are case-insensitive substring matches (text searches headers and body). since/before are ISO dates (YYYY-MM-DD); before is exclusive. The default folder 'All Mail' covers the whole mailbox.
| Parameter | Type | Description |
|---|---|---|
before | ||
folder | string | |
from_ | ||
limit | integer | |
since | ||
subject | ||
text | ||
to | ||
unread_only | boolean |
read_email
Read one email by its uid (from list_emails/search_emails, in the same folder). Does not mark it as read.
| Parameter | Type | Description |
|---|---|---|
uid * | integer | |
folder | string | |
max_chars | integer |
list_sender_addresses
List the addresses send_email can send from, with the display name used for each. The first one is the default for new emails; replies default to the address the original email was sent to. Pass one as send_email's from_address.
send_email
Send an email (HTML + plain-text alternative) from the user's Proton address. IRREVERSIBLE. Only call this after showing the user the exact sender, recipients, subject and body and receiving their explicit approval in chat. from_address picks which of the user's addresses sends it (see list_sender_addresses). If omitted, new emails go out from the default address and replies from the address the original was sent to. The body is light Markdown, rendered to HTML: blank line = new paragraph, single newline = line break, lines starting with "- " = bullet list, "1. " = numbered list, **bold**, *i…
| Parameter | Type | Description |
|---|---|---|
body * | string | |
subject * | string | |
to * | string | |
bcc | ||
cc | ||
from_address | ||
include_original | boolean | |
reply_folder | string | |
reply_to_uid |