Mailcycle
v0.8.5An 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.
| Parameter | Type | Description |
|---|---|---|
address | string | Only this address. Leave out for all of them. |
limit | integer |
read_message Read an email
One email from the inbox in full: sender, subject, text and attachments.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
index * | integer | The number shown in brackets in read_message, starting at 0. |
message_id * | string | |
save_to | string | A 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.
| Parameter | Type | Description |
|---|---|---|
address | string | Only mail to this address. |
after_message_id | string | Count mail after this message instead of from now. |
from_contains | string | Only mail whose sender contains this, like "github.com". |
subject_contains | string | Only mail whose subject contains this. |
timeout_seconds | integer | How 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.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | |
text * | string | The reply, as plain text. |
attachments | array | Paths 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… |
html | string | An 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.
| Parameter | Type | Description |
|---|---|---|
subject * | string | |
text * | string | |
to * | string | |
attachments | array | Paths 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… |
from | string | One of this agent's addresses. Can be left out if it has only one. |
html | string |