Mailcycle

v0.8.5
email.mailcycle/mailcycle Checked 13 hours ago Published 1 day ago

An email address for your AI agent.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_addresses List email addresses

This agent's email addresses (its inboxes), and what email it is allowed to send.

list_messages List emails

The newest emails in the agent's inbox, newest first, with a short preview of each. Use read_message for the full text.

ParameterTypeDescription
addressstringOnly this address. Leave out for all of them.
limitinteger

read_message Read an email

One email from the inbox in full: sender, subject, text and attachments.

ParameterTypeDescription
message_id *stringThe id from list_messages or wait_for_message, like msg_…

read_attachment Read an attachment

Opens one attachment of an email, by its number in read_message. Text comes back as text and images as images. Anything else, like a PDF, needs save_to: a folder inside the agent's files folder (by default ~/.config/mailcycle/files, or the folders set in MAILCYCLE_FILES_DIR). The file is written there, without overwriting anything, and the path is returned.

ParameterTypeDescription
index *integerThe number shown in brackets in read_message, starting at 0.
message_id *string
save_tostringA folder inside the agent's files folder to write the file to, instead of returning it.

wait_for_message Wait for an email

Waits for a new email to arrive in the agent's inbox and returns it in full. Use it right after signing up somewhere to catch a verification code or link. Each call waits up to 50 seconds; if nothing came, call it again with the same filters and it carries on from where the first call started, so nothing that arrived in between is missed. Only mail that arrives after the first call starts counts, unless after_message_id is given. Mail that came before the wait is not returned: if the user says they already sent it, use list_messages to find it.

ParameterTypeDescription
addressstringOnly mail to this address.
after_message_idstringCount mail after this message instead of from now.
from_containsstringOnly mail whose sender contains this, like "github.com".
subject_containsstringOnly mail whose subject contains this.
timeout_secondsintegerHow long to wait. A single call stops after 50 seconds at most.

reply Reply to an email

Replies by email to the sender of a message, from the address it was sent to, threaded under it. Works in reply-only mode.

ParameterTypeDescription
message_id *string
text *stringThe reply, as plain text.
attachmentsarrayPaths of files to attach, inside the agent's files folder only (by default ~/.config/mailcycle/files, or the folders set in MAILCYCLE_FILES_DIR). Up to 10, 3.5 MB between them. Files outside that fold…
htmlstringAn HTML version, if wanted. The plain text is always sent too.

send_message Send an email

Sends a new email. Needs the agent to be allowed to send to anyone; in reply-only mode use reply instead.

ParameterTypeDescription
subject *string
text *string
to *string
attachmentsarrayPaths of files to attach, inside the agent's files folder only (by default ~/.config/mailcycle/files, or the folders set in MAILCYCLE_FILES_DIR). Up to 10, 3.5 MB between them. Files outside that fold…
fromstringOne of this agent's addresses. Can be left out if it has only one.
htmlstring