About Agenticmail
Agenticmail is an MCP server published by agenticmail in the Communication category: email, SMS & phone-call infrastructure for AI agents — send and receive real email and text messages, and place agent-driven outbound voice calls, all programmatically. Conduid read 112 tools from its source: ask_operator, batch_delete, batch_mark_read, batch_mark_unread, batch_move, batch_read and 106 more. No package is published for it, so it installs from a source checkout.
The repository has 261 stars and 39 forks, is licensed MIT, and its last commit was on 26 Nov 2026. The latest release is agenticmail-cli-v0.9.110 (13 Nov 2026): Security release Upgrade now: npm install -g @agenticmail/cli@latest | Package | Version | |---|---| | @agenticmail/cli | 0.9.110 | | @agenticmail/api | 0.9.65 | | @agen… It follows agenticmail-cli-v0.9.104 (5 Jun 2026), and the 5 most recent releases go back to v0.9.101 (29 May 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Its topics include agenticmail, comms, email, google-voice, agent-sms and agent-email.
Install
git clone https://github.com/agenticmail/agenticmailTools (112)
ask_operatorAsk your human operator a question when you need information, a decision, or approval that you do not already have. Your operator may take a few minutes to reply. Before you call this, tell the caller you need a moment to check.
USE THIS — DO NOT SAY "I DON'T KNOW" — whenever the other party asks you to verify identity on the operator's behalf: date of birth, account number, last-4 of SSN, mother's maiden name, billing-address ZIP, security-question answer, member ID, policy number, etc. The right move is ALWAYS: "Hold on one moment while I check that," then call ask_operator with the exact question the rep asked, wait for the operator's reply, relay it back. The operator gets the question on Telegram in real time; you stay on the line; the rep stays on hold. Telling the rep "I don't know, I'll have to call back" wastes everyone's time when ask_operator would have closed the loop in 30–60 seconds.| Parameter | Type | Description |
|---|---|---|
| call_context | string | One short line on what this call is about, so your operator has context. |
| question * | string | The exact question to put to your operator. |
| urgency | string | How urgent the answer is. Defaults to normal. |
batch_deleteDelete multiple emails by UIDs| Parameter | Type | Description |
|---|---|---|
| folder | string | Folder (default: INBOX) |
| uids * | array | Array of UIDs to delete |
batch_mark_readMark multiple emails as read| Parameter | Type | Description |
|---|---|---|
| folder | string | Folder (default: INBOX) |
| uids * | array | Array of UIDs to mark as read |
batch_mark_unreadMark multiple emails as unread| Parameter | Type | Description |
|---|---|---|
| folder | string | Folder (default: INBOX) |
| uids * | array | Array of UIDs to mark as unread |
batch_moveMove multiple emails to another folder| Parameter | Type | Description |
|---|---|---|
| from | string | Source folder (default: INBOX) |
| to * | string | Destination folder (e.g., Trash, Archive) |
| uids * | array | Array of UIDs to move |
batch_readRead multiple emails at once by UIDs. Returns full parsed content for each message in a single call.| Parameter | Type | Description |
|---|---|---|
| folder | string | Folder (default: INBOX) |
| uids * | array | Array of UIDs to read |
broadcast_emailSend the SAME email to N agents as N SEPARATE, ISOLATED emails — no CC, no shared thread. Each recipient sees ONLY their own address on the `To:` line and reads the message as a private 1:1 from you. Use this when you need to fan-out an announcement, hand the same task to several workers in parallel, or poll multiple agents for independent answers without letting them see each other's replies. **Not** a replacement for `send_email` + CC — use CC when the team should see each other and collaborate in one thread; use `broadcast_email` when the conversations are independent. Each per-recipient email gets its own Message-ID and thread, so replies come back to you privately (and `wait_for_email` can filter on `from:` to demultiplex). WAKE SEMANTICS: by default every local @localhost recipient gets a wake (since each is the sole `To:` of its own delivery). Pass `wake: []` to fan-out silently (no wakes), or `wake: ["alice","bob"]` to wake only specific recipients while still delivering to all. Outbound guard scans every per-recipient send individually; if ANY send is blocked, the response reports per-recipient status so you know what got through.| Parameter | Type | Description |
|---|---|---|
| attachments | array | File attachments. Same set is attached to every per-recipient delivery. |
| html | string | HTML body shared by every per-recipient delivery (optional). |
| subject * | string | Subject line shared by every per-recipient delivery. |
| text | string | Plain text body shared by every per-recipient delivery. |
| to * | array | List of recipient addresses. Accepts an array of strings (preferred) or a single comma-separated string. Each address gets its OWN email — there is no CC, no shared thread, no way for recipients to see each other. |
| wake | any | Optional wake-control. Accepts: (1) an array of agent names — `["alice","bob"]` — to wake exactly those recipients (others still receive the mail but stay asleep); (2) the string `"all"` to wake every recipient (this is the default for broadcasts); (3) an empty array `[]` to deliver to everyone silently with no wakes; (4) omit entirely to use the default (wake every local recipient). |
call_agentSynchronous RPC to delegate work to another AgenticMail agent. Pipeline: the task is queued in AgenticMail, the target agent processes it AS THEMSELVES (under their real identity, mailbox, persona, and audit trail), and the structured result returns into your call. THIS IS HOW MULTI-AGENT COORDINATION IS SUPPOSED TO WORK from any MCP host. Do not, instead, spawn one of your host's native sub-agents and tell it to "act as <target>" — that produces output under your identity, never touches the target's inbox, and skips their persona. Pass outputSchema to require a structured deliverable shape: the API validates the worker's submit_result against the schema and rejects mismatches with validator errors, so the worker can retry with a correct shape rather than returning free-form prose. Times out after the specified duration (default 180s, max 300s).| Parameter | Type | Description |
|---|---|---|
| outputSchema | object | Optional JSON Schema (draft-7 subset: type, required, properties, items, enum, additionalProperties, minLength/maxLength, minimum/maximum) describing the shape submit_result must conform to. The worker sees the schema in the wake prompt and the API validates on submission. |
| payload | object | Additional data |
| target * | string | Name of the agent to call |
| task * | string | Task description |
| timeout | number | Max seconds to wait (default: 180, max: 300) |
call_answer_queryInject an answer to a pending ask_operator query on a live phone call. The voice agent's next poll picks it up within ~3 seconds and relays the answer verbatim to the other party on the line. Use when the operator has provided info the call needs (DOB / account # / address / yes-or-no decision) — this beats redialing by a factor of 30× in wall-clock time and preserves the original call's context. If the mission was already terminated and the query auto-closed, this returns alreadyAnswered=true and is a no-op. When the call had already dropped, the answer arms a callback-on-disconnect that the scheduler dials a few seconds later with the answer baked into the continuation task.| Parameter | Type | Description |
|---|---|---|
| answer * | string | The literal answer to relay back to the call (e.g. "11/26/1998", "Yes go ahead", "Approved up to $200"). The voice agent reads this verbatim to the other party. |
| mission_id * | string | Phone mission id (oq_ ids are bound to one mission; you can get this from call_open_queries). |
| query_id * | string | Operator-query id, e.g. "oq_abc-123…". From call_open_queries. |
call_cancelCancel a tracked phone mission in AgenticMail. Provider-side hangup is not guaranteed in this call-control slice.| Parameter | Type | Description |
|---|---|---|
| id * | string | Phone mission id |
call_open_queriesList PENDING ask_operator queries on a phone mission (or all of an agent's missions when id is omitted). Use this BEFORE assuming a verification-style message from the operator is a fresh chat question — if there's an open query, the operator is most likely answering it. Pair with call_answer_query to inject the answer.| Parameter | Type | Description |
|---|---|---|
| id | string | Phone mission id. Omit to scan all of your agent's missions for open queries. |
call_phone| Parameter | Type | Description |
|---|---|---|
| dryRun | boolean | When true, store the mission without calling the provider |
| policy * | object | Phone mission policy — see tool description for the minimal valid shape. All fields required. |
| task * | string | Concrete call objective, e.g. "reserve a table for two at 19:30" |
| to * | string | Target phone number in E.164 format (e.g. +15555550100) |
| voiceRuntimeRef | string | Optional external voice runtime/session reference for future realtime integration |
call_statusGet one phone mission by id, or list recent phone missions when id is omitted.| Parameter | Type | Description |
|---|---|---|
| id | string | Phone mission id |
| limit | number | Max missions when listing (default: 20, max: 100) |
| offset | number | Skip missions when listing |
| status | string | Optional status filter when listing missions |
call_transcriptRead the transcript entries recorded for a phone mission.| Parameter | Type | Description |
|---|---|---|
| id * | string | Phone mission id |
check_activityCheck which agents are currently being woken by the dispatcher. Use this when you sent mail to a teammate and want to know if they have actually started working, or to audit the live multi-agent state. Returns active workers with the agent name, what triggered the wake (mail UID + subject, or task id), how long they have been running, the most recent tool they invoked, how many tool calls they have made, a `stale` flag (true if the dispatcher has not heartbeated in 90s+), and a preview of recently-finished work. Workers may run for hours — there is no auto-eviction; staleness is just a hint. Requires master key.| Parameter | Type | Description |
|---|---|---|
| agent | string | Filter to a specific agent by name (case-insensitive). Omit to see every active and recently-finished worker. |
| includeRecent | boolean | Include workers that finished in the last ~2 minutes (default: true). Set false to see only currently-running workers. |
check_gateway_statusCheck the current email gateway status — relay mode, domain mode, or not configuredcheck_healthCheck 🎀 AgenticMail server health statuscheck_messagesCheck for new unread messages from other agents or external senders. Returns a summary of pending communications. Use this to stay aware of requests and coordinate with other agents.check_tasksCheck for pending tasks assigned to you (or a specific agent) or tasks you assigned to others| Parameter | Type | Description |
|---|---|---|
| assignee | string | Check tasks for a specific agent by name (only for incoming direction) |
| direction | string | incoming (assigned to me) or outgoing (I assigned) |
claim_taskClaim a pending task assigned to you| Parameter | Type | Description |
|---|---|---|
| id * | string | Task ID to claim |
cleanup_agentsList or remove inactive non-persistent agent accounts (requires master API key)| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform |
| agentId | string | Agent ID (for set_persistent) |
| dryRun | boolean | Preview without deleting (for cleanup) |
| hours | number | Inactivity threshold in hours (default: 24) |
| persistent | boolean | Set persistent flag (for set_persistent) |
create_accountCreate a new AgenticMail agent (email account + identity + API key + persona derived from role/metadata). Requires master API key. After creation: address them at `<name>@localhost`, delegate work via `call_agent({ target: "<name>", task: ... })`, or hand off via `send_email` / `message_agent`. The new agent acts as themselves — you never need to (and must not) roleplay them inside your host's native sub-agent tool.| Parameter | Type | Description |
|---|---|---|
| domain | string | Email domain (default: localhost) |
| name * | string | Agent name (will be used as email local part) |
| role | string | Agent role (default: secretary) |
create_folderCreate a new mail folder for organizing emails| Parameter | Type | Description |
|---|---|---|
| name * | string | Folder name (e.g., Projects, Clients, Newsletters) |
delete_agentDelete an agent account. Archives all emails and generates a deletion report before removing the account permanently. Returns the deletion summary. Requires master API key.| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the agent to delete |
| reason | string | Reason for deletion (optional) |
delete_emailDelete an email by its UID| Parameter | Type | Description |
|---|---|---|
| uid * | number | The UID of the email to delete |
deletion_reportsList past agent deletion reports or retrieve a specific report by ID. Shows archived email summaries from deleted agents. Requires master API key.| Parameter | Type | Description |
|---|---|---|
| id | string | Deletion report ID (omit to list all reports) |
end_callHang up the call. You MUST call this AFTER you have said goodbye and the conversation is complete — saying "I'll hang up now" is not enough on its own, the call stays open until you actually call this tool. Use it when: the task is done and you have signed off, the caller has indicated the conversation is over, you have scheduled a callback and said goodbye, or the caller has stopped responding for an extended period. Once called the call drops immediately; you cannot un-hang-up.| Parameter | Type | Description |
|---|---|---|
| reason | string | One short line for the audit trail — e.g. "task complete", "caller said bye", "scheduled callback, signing off". Optional but recommended. |
extend_call_timeRequest more time on this call. Auto-approved within your call's extension policy — you do not need to ask the operator. Use this BEFORE your time runs out. If the grant is partial or refused the response tells you exactly what you have left; do not retry-loop.| Parameter | Type | Description |
|---|---|---|
| reason | string | One short line on why — kept on the mission transcript for review. |
| seconds * | number | How many MORE seconds you need. Positive integer. The server caps each grant. |
forward_emailForward an email to another recipient. Outbound guard applies — HIGH severity content is held for review. Pass `wake` to limit which local recipients get a host turn from the dispatcher when this forward lands.| Parameter | Type | Description |
|---|---|---|
| text | string | Additional message (optional) |
| to * | string | Recipient to forward to |
| uid * | number | UID of the email to forward |
| wake | array | Optional. Names of the agents who should get a host turn when the forward lands. Pass `[]` to deliver silently. Omit to wake everyone CC'd. |
get_call_statusCheck how much time you have left on this call and whether you can request more time or schedule a callback. Use this whenever you are unsure if there is room to keep going. Returns: secondsRemaining, soft deadline timestamp, extensions used/remaining/availableSeconds, callbackAvailable.get_datetimeGet the current date and time. Use this whenever the caller refers to a relative time like "tomorrow", "tonight", or "next Tuesday" so you can resolve it to a real date.| Parameter | Type | Description |
|---|---|---|
| timezone | string | Optional IANA timezone (e.g. "Europe/Vienna"). Defaults to UTC. |
get_thread_idResolve the stable thread id for a message UID. Use this BEFORE calling save_thread_memory or when you want to inspect the cache for a thread. Pass the UID of any message on the thread (root or reply) — the API normalises the subject, resolves the canonical root sender, and returns the same id every time. `folder` defaults to INBOX.| Parameter | Type | Description |
|---|---|---|
| folder | string | IMAP folder where the UID lives. Defaults to INBOX. |
| uid * | number | Message UID. |
import_relay_emailImport an email from the connected Gmail/Outlook account into the agent's local inbox. This downloads the full message with all headers (Message-ID, In-Reply-To, References) so you can continue the thread using reply_email. Use search_emails with searchRelay=true first to find the relay UID.| Parameter | Type | Description |
|---|---|---|
| uid * | number | The relay UID of the email to import (from search_emails relay results) |
inbox_digestGet a compact inbox digest with subject, sender, date, flags and text preview for each message. More efficient than listing then reading individually.| Parameter | Type | Description |
|---|---|---|
| folder | string | Folder (default: INBOX) |
| limit | number | Max messages (default: 20, max: 50) |
| offset | number | Skip messages (default: 0) |
| previewLength | number | Preview text length (default: 200, max: 500) |
invokeCall ANY AgenticMail tool by name with structured args — including tools not in your pre-loaded tool list. Use after `request_tools` to discover the right tool. Pass `_account` either at the top level OR inside `args`; either works. Example: invoke({ tool: "manage_signatures", args: { action: "create", name: "default", body: "—\nFola" }, _account: "Fola" }).| Parameter | Type | Description |
|---|---|---|
| args | object | Arguments for the target tool. Same shape you would pass if calling the tool directly. |
| tool * | string | The AgenticMail tool name to call (e.g. "manage_signatures", "sms_send"). See request_tools for the full catalogue. |
list_agentsList all AI agents in the system with their email addresses and roles. Use this to discover which agents you can call via call_agent (sync RPC) or email via send_email / message_agent (async). DO NOT spawn one of your host's native sub-agents and roleplay AS these agents — each one is a real identity with its own mailbox; just address them through AgenticMail and let them work as themselves.list_folderList messages in a specific folder| Parameter | Type | Description |
|---|---|---|
| folder * | string | Folder path (e.g., INBOX, Trash, Sent) |
| limit | number | Max messages (default: 20) |
| offset | number | Skip messages (default: 0) |
list_foldersList all mail folders/mailboxeslist_inboxList recent emails in the agent's inbox| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum number of messages to return (default: 20) |
| offset | number | Number of messages to skip (default: 0) |
load_skillLoad a skill playbook by id into your context for the rest of this call. The playbook (principles, scripted phrases, ordered tactics, hard boundaries, exit strategy) grounds your next turns. Always call search_skills first to find the right id. Before calling, say "hold on one moment" — loading is briefer than `ask_operator` but takes a beat.| Parameter | Type | Description |
|---|---|---|
| id * | string | Skill id (lowercase-hyphenated), e.g. "negotiate-bill-reduction". Get it from search_skills. |
manage_contactsList, add, or delete contacts| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform |
| string | Contact email (for add) | |
| id | string | Contact ID (for delete) |
| name | string | Contact name (for add) |
manage_draftsList, create, update, send, or delete drafts. On send, you can pass `wake` to limit which local recipients get a host turn — same semantics as send_email.| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform |
| id | string | Draft ID (for update/send/delete) |
| subject | string | Subject (for create/update) |
| text | string | Body text (for create/update) |
| to | string | Recipient (for create/update) |
| wake | array | Optional, for action=send. Names of the agents who should get a host turn when the drafted mail lands. Pass `[]` to deliver silently. Omit to wake everyone CC'd. |
manage_pending_emailsCheck the status of pending outbound emails blocked by the outbound guard. You can list all your pending emails or get details of a specific one. You CANNOT approve or reject — only the owner can do that.| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform (list or get only — approve/reject require owner) |
| id | string | Pending email ID (required for get) |
manage_rulesManage server-side email rules that auto-process incoming messages (move, tag, mark read, delete).| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform |
| actions | object | Actions on match: { move_to?, mark_read?, delete?, add_tags? } |
| conditions | object | Match conditions: { from_contains?, subject_contains?, subject_regex?, to_contains?, has_attachment? } |
| id | string | Rule ID (for delete) |
| name | string | Rule name (for create) |
| priority | number | Higher priority rules match first (for create) |
manage_scheduledManage scheduled emails: create a new scheduled email, list pending ones, or cancel one. Accepts flexible time formats for create: ISO 8601, relative ("in 30 minutes"), named ("tomorrow 8am"), day-based ("next monday 9am"), or human-friendly ("02-14-2026 3:30 PM EST").| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform (default: create) |
| id | string | Scheduled email ID (for cancel) |
| sendAt | string | When to send (for create) |
| subject | string | Email subject (for create) |
| text | string | Body text (for create) |
| to | string | Recipient email (for create) |
manage_signaturesList, create, or delete email signatures| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform |
| id | string | Signature ID (for delete) |
| isDefault | boolean | Set as default signature (for create) |
| name | string | Signature name (for create) |
| text | string | Signature text content (for create) |
manage_spamManage spam: list spam folder, report a message as spam, mark as not-spam, or get the spam score of a message. Emails are auto-scored on arrival; high-scoring messages are moved to Spam automatically.| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform |
| folder | string | Source folder (for report/score, default: INBOX) |
| limit | number | Max messages to list (for list, default: 20) |
| offset | number | Skip messages (for list, default: 0) |
| uid | number | Message UID (for report, not_spam, score) |
manage_tagsCreate, list, delete tags, tag/untag messages, get messages by tag, or get all tags for a specific message.| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform |
| color | string | Tag color hex code (for create, e.g. #ff0000) |
| folder | string | Folder the message is in (default: INBOX) |
| id | string | Tag ID (for delete, tag_message, untag_message, get_messages) |
| name | string | Tag name (for create) |
| uid | number | Message UID (for tag_message, untag_message) |
manage_templatesList, create, or delete email templates| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform |
| id | string | Template ID (for delete) |
| name | string | Template name (for create) |
| subject | string | Template subject (for create) |
| text | string | Template body text (for create) |
mark_readMark an email as read| Parameter | Type | Description |
|---|---|---|
| uid * | number | UID of the email |
mark_unreadMark an email as unread| Parameter | Type | Description |
|---|---|---|
| uid * | number | UID of the email |
media_audio_editEdit audio: trim, convert format, merge files, adjust volume, change speed, extract from video, reverse, fade in/out. Requires ffmpeg.| Parameter | Type | Description |
|---|---|---|
| action * | string | The edit action. |
| duration | string | Duration (trim): "10". |
| end | string | End time (trim): "00:00:15". |
| fadeDuration | number | Fade duration in seconds (fade). Default: 3. |
| fadeType | string | Fade direction (fade). |
| files | array | Array of file paths to merge (merge). |
| format | string | Output format: mp3, wav, ogg, flac, aac, m4a (convert/extract). |
| input | string | Absolute path to the input audio (or video for extract). Not required for merge. |
| speedFactor | number | Speed: 0.5 = half, 2 = double (speed). |
| start | string | Start time (trim): "00:00:05" or "5". |
| volume | string | Volume: "1.5" (150%), "0.5" (50%), or "10dB", "-5dB". |
media_capabilitiesReport which media binaries (ffmpeg, ffprobe, ImageMagick, whisper.cpp, Python, edge-tts) are installed and available. Media tools are opt-in — call this first to see what operations are possible before attempting them.| Parameter | Type | Description |
|---|---|---|
| refresh | boolean | Re-probe the binaries instead of using the cached result (e.g. after installing one). |
media_image_editEdit an image: resize, crop, rotate, convert format, compress, overlay text, flip, blur, sharpen, grayscale. Requires ImageMagick.| Parameter | Type | Description |
|---|---|---|
| action * | string | The edit action to perform. |
| angle | number | Rotation angle in degrees (rotate). |
| blurRadius | number | Blur radius (blur). Default: 5. |
| direction | string | Flip direction. Default: horizontal. |
| fontColor | string | Text colour (text_overlay). Default: white. |
| fontSize | number | Font size in points (text_overlay). Default: 36. |
| format | string | Output format: png, jpg, webp, gif, bmp, tiff (convert). |
| height | number | Target height in pixels (resize/crop). |
| input * | string | Absolute path to the input image. |
| offsetX | number | Crop X offset from top-left. Default: 0. |
| offsetY | number | Crop Y offset from top-left. Default: 0. |
| position | string | Text position: north, south, center, northeast, etc. Default: south. |
| quality | number | JPEG/WebP quality 1-100 (compress). Default: 80. |
| text | string | Text to overlay (text_overlay). |
| width | number | Target width in pixels (resize/crop). |
media_infoGet metadata about any media file: duration, resolution, codec, bitrate, channels, etc. Requires ffprobe.| Parameter | Type | Description |
|---|---|---|
| input * | string | Absolute path to the media file. |
media_ttsConvert text to speech using Edge TTS (free, local — requires the optional node-edge-tts package). Returns an audio file path (OGG/Opus when ffmpeg is available, else MP3).| Parameter | Type | Description |
|---|---|---|
| pitch | string | Pitch shift, e.g. "+5Hz" or "-10Hz". |
| rate | string | Speaking rate, e.g. "+20%" or "-10%". |
| text * | string | Text to speak. |
| voice | string | Preset name (guy, jenny, aria, davis, tony, ana, brian, emma, ryan, sonia, william, natasha) or a full Edge voice id. |
media_tts_voicesList the available text-to-speech voice presets.media_video_editEdit a video. Basic: trim, extract_frame, extract_frames, convert, gif, compress, resize, add_audio, remove_audio, speed. Cinematic: color_grade, transition, text_overlay, picture_in_picture, split_screen, ken_burns, slow_motion, watermark, concatenate, audio_mix, auto_caption. Requires ffmpeg (ImageMagick for text/captions, whisper.cpp for auto_caption).| Parameter | Type | Description |
|---|---|---|
| action * | string | The edit action. |
| audioPath | string | Path to an audio file (add_audio, audio_mix). |
| bgVolume | string | Background audio volume for audio_mix. Default: 0.3. |
| captionColor | string | Auto-caption text colour. Default: white. |
| captionFontSize | number | Auto-caption font size. Default: auto-scaled. |
| colorPreset | string | Colour grade preset: warm, cool, vintage, cinematic, dramatic, bleach, noir, vivid, muted, golden_hour. |
| crf | number | Quality 0-51, lower is better. Default: 28. |
| duration | string | Duration in seconds. |
| end | string | End time: "00:00:15" or "15". |
| fgVolume | string | Foreground audio volume for audio_mix. Default: 1.0. |
| files | array | Array of file paths (concatenate). |
| fontColor | string | Text colour. Default: white. |
| fontSize | number | Font size for text_overlay. Default: 72. |
| format | string | Output format: mp4, webm, mov, avi, mkv. |
| fps | number | Frame rate. |
| height | number | Target height. |
| input | string | Absolute path to the input video (or image for ken_burns). Not required for concatenate. |
| interval | number | Seconds between extracted frames. Default: 1. |
| lutPath | string | Path to a .cube LUT file for color_grade. |
| overlayOpacity | number | Watermark opacity 0.0-1.0. Default: 0.7. |
| overlayScale | number | Watermark scale 0.0-1.0. Default: 0.2. |
| pipPosition | string | PiP position: top-left, top-right, bottom-left, bottom-right. |
| pipWidth | number | Picture-in-picture overlay width. Default: 320. |
| secondInput | string | Second video/image path (transition, picture_in_picture, split_screen). |
| speedFactor | number | Speed multiplier: 0.5 = half, 2 = double. |
| splitDirection | string | Split-screen direction. Default: horizontal. |
| start | string | Start time: "00:00:05" or "5". |
| text | string | Text for text_overlay. |
| textBg | string | Text background colour with opacity, e.g. "black@0.5". |
| textEnd | string | When text disappears (seconds). |
| textPosition | string | Text position: center, top, bottom, top-left, top-right, bottom-left, bottom-right. |
| textStart | string | When text appears (seconds). Default: 0. |
| timestamp | string | Timestamp for single frame extraction. |
| transitionDuration | number | Transition duration in seconds. Default: 1. |
| transitionType | string | Transition type: fade, wipeleft, slideright, circlecrop, etc. Default: fade. |
| watermarkPath | string | Path to the watermark/logo image. |
| watermarkPosition | string | Watermark position: top-left, top-right, bottom-left, bottom-right, center. |
| whisperModel | string | Absolute path to a whisper.cpp model file (.bin) — required for auto_caption. |
| width | number | Target width. |
| zoomDirection | string | Ken Burns: zoom_in, zoom_out, pan_left, pan_right, pan_up, pan_down. |
| zoomDuration | number | Ken Burns output duration in seconds. Default: 5. |
| zoomFactor | number | Ken Burns zoom factor 1.0-3.0. Default: 1.5. |
media_video_understandAnalyse a video before editing it. Extracts frames at intervals and (when a whisper model is supplied) transcribes the audio, returning a structured timeline of what is shown and said. Requires ffmpeg; transcription additionally needs whisper.cpp + a model file.| Parameter | Type | Description |
|---|---|---|
| frameInterval | number | Seconds between extracted frames. Default: 3. |
| input * | string | Absolute path to the video file. |
| maxFrames | number | Maximum number of frames to extract. Default: 30. |
| whisperModel | string | Absolute path to a whisper.cpp model file (.bin). When supplied, the audio is transcribed and merged into the timeline. |
media_voice_cloneSynthesise speech in a reference voice using F5-TTS. Requires a Python interpreter with the f5-tts and soundfile packages. You MUST supply a reference audio sample and its transcript — there is no built-in voice.| Parameter | Type | Description |
|---|---|---|
| device | string | Compute device for F5-TTS: cpu, cuda, mps. Default: cpu. |
| refAudio * | string | Absolute path to the reference audio sample (required). |
| refText * | string | Transcript of the reference audio (required). |
| text * | string | Text to speak in the cloned voice. Keep it short (~15 words) for best quality. |
memoryYour persistent, long-term memory — knowledge that survives across every conversation, like a human employee learning on the job. Use `set` to remember something durable (a preference, a fact, a correction, a learned skill); `search` to recall by topic; `list` to browse; `get` to read one entry; `delete` to forget. Memory is private to you and persists forever unless it decays from disuse or you delete it. Store things you would want to still know weeks from now — not transient task state.| Parameter | Type | Description |
|---|---|---|
| action * | string | set | get | search | list | delete |
| category | string | set: memory category (default: context). |
| content | string | set: the thing to remember (plain text). |
| id | string | get | delete: the memory entry id. |
| importance | string | set: how important this is (default: normal). critical entries never decay. |
| limit | number | search | list: max entries to return (default 50). |
| query | string | search: the topic to recall. |
| tags | array | set: optional tags. |
| title | string | set: a short title/label for the memory (optional — derived from content if omitted). |
memory_contextGet a ranked markdown digest of your most relevant persistent memory — what you would want loaded into your working context right now. Optionally pass a `query` to bias the digest toward a topic. This is the same memory block a voice/phone session injects so you act with full continuity.| Parameter | Type | Description |
|---|---|---|
| maxTokens | number | Approximate size budget (default 1500). |
| query | string | Optional topic to focus the digest on. |
memory_reflectRecord a self-reflection into your persistent memory — an insight or lesson you want to carry forward (stored as a high-confidence `reflection` entry). Use this at the end of a task or conversation to capture what you learned.| Parameter | Type | Description |
|---|---|---|
| content * | string | The reflection / insight to remember. |
| importance | string | Default: normal. |
| title | string | Optional short title. |
memory_statsGet aggregate statistics about your persistent memory — total entries, breakdown by category / importance / source, and average confidence.message_agentAsync fire-and-forget: deliver a message to another AI agent's inbox. They will process it on their own schedule (immediately if a dispatcher is attached, later otherwise) and may reply by email. Use this for non-blocking handoffs. Prefer `call_agent` when you need a structured reply back. Both flows let the target agent do the work AS THEMSELVES — never roleplay them inside your own host.| Parameter | Type | Description |
|---|---|---|
| agent * | string | Name of the recipient agent (e.g. "researcher", "writer") |
| priority | string | Priority level (default: normal) |
| subject * | string | Message subject — describe the purpose clearly |
| text * | string | Message body |
move_emailMove an email to another folder (e.g., Trash, Archive)| Parameter | Type | Description |
|---|---|---|
| from | string | Source folder (default: INBOX) |
| to * | string | Destination folder (e.g., Trash, Archive) |
| uid * | number | UID of the email to move |
phone_capabilitiesShow the configured phone provider, caller number, supported regions, and whether realtime media is available.phone_transport_setupConfigure the phone call-control transport for this agent. This stores provider credentials and webhook settings; it does not start a call. Pick ONE provider — 46elks or twilio — and supply that provider's credentials. For 46elks pass username + password; for twilio pass accountSid + authToken (or the generic username + password — for twilio username is the account SID and password is the auth token).| Parameter | Type | Description |
|---|---|---|
| accountSid | string | Twilio only: the account SID (alias for username when provider is "twilio"). |
| apiUrl | string | Optional provider API base URL override (46elks or Twilio REST root) |
| authToken | string | Twilio only: the account auth token (alias for password when provider is "twilio"). |
| capabilities | array | Transport capabilities, e.g. ["call_control"] or ["call_control","realtime_media"] |
| password | string | 46elks API password. For twilio this is the auth token — prefer the authToken param for clarity. |
| phoneNumber * | string | Owned caller phone number in E.164 format, e.g. +43123456789 |
| provider | string | Phone provider: "46elks" (default) or "twilio". Both support call-control missions and realtime voice. |
| supportedRegions | array | Supported region scopes: AT, DE, EU, WORLD |
| username | string | 46elks API username. For twilio this is the account SID — prefer the accountSid param for clarity. |
| webhookBaseUrl * | string | Public HTTPS base URL for AgenticMail phone webhooks |
| webhookSecret * | string | Shared secret included on provider webhook URLs (at least 24 characters) |
purchase_domainSearch for available domains via Cloudflare Registrar (requires master API key). NOTE: Cloudflare API only supports READ access — domains must be purchased manually at https://dash.cloudflare.com or from another registrar (then point nameservers to Cloudflare).| Parameter | Type | Description |
|---|---|---|
| keywords * | array | Keywords to search for (e.g., ["mybot", "aimail"]) |
| tld | string | Preferred TLD (default: checks .com, .net, .io, .dev) |
read_emailRead the full content of a specific email by its UID| Parameter | Type | Description |
|---|---|---|
| uid * | number | The UID of the email to read |
recall_memorySearch your own long-term memory for something not already in front of you — a past preference, fact, or lesson you have learned. Fast.| Parameter | Type | Description |
|---|---|---|
| query * | string | What to look for in your memory. |
reply_emailReply to an email. Fetches the original message, auto-fills To, Subject (Re:), In-Reply-To, and References, then sends with quoted body. **For multi-agent thread coordination, pass `replyAll: true`** — the original sender lands on To:, every other thread participant lands on Cc:. **Wake routing is body-aware**: if your reply addresses a specific CC'd agent ("Marlow —", "@kepler", "handing off to rivet", etc.), the dispatcher wakes them automatically. If your body has no such addressing, the original sender (on To:) wakes by default. **Pass `wake` to override** explicitly (e.g. `wake: ["marlow"]` to force-target one agent, or `wake: []` to deliver silently). Outbound guard applies — HIGH severity content is held for review.| Parameter | Type | Description |
|---|---|---|
| html | string | HTML reply (optional) |
| replyAll | boolean | Reply to all recipients (default: false) |
| text * | string | Your reply text |
| uid * | number | UID of the email to reply to |
| wake | array | Optional. Names of the agents who should get a host turn from the dispatcher when this reply lands. CC'd agents NOT in this list still receive the email but stay asleep — saves significant tokens on large threads. Pass `[]` to deliver silently. Omit to wake everyone CC'd. |
request_toolsDiscover AgenticMail tools that are NOT already in your loaded tool list. Returns a text catalogue grouped by set (mail_extras, sms, agent_coord, …) with each tool name and its schema summary. After calling this, use `invoke` to call any tool by name. Optional filters: `query` (substring match on tool name/description) or `sets` (return only the named sets).| Parameter | Type | Description |
|---|---|---|
| query | string | Case-insensitive substring filter on tool name or description (e.g. "signature", "voice"). |
| sets | array | Restrict the output to these set names (e.g. ["sms", "mail_extras"]). See SET_DESCRIPTIONS for valid names. |
resume_agentReverse a previous `stop_agent` call. Clears the `stopped` flag so the dispatcher resumes waking this agent on incoming mail and task events. The agent's inbox is exactly as it was during the pause — any mail that arrived while stopped is still there and will be picked up on the next natural wake. Requires master API key.| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the agent to resume |
save_thread_memoryPersist a one-paragraph memory of where THIS agent stands on the given thread. Called at the end of every wake — Claude Code reads it back into the next wake's prompt so the agent doesn't re-derive context from scratch by re-reading 10 prior messages. Pass `threadId` from `get_thread_id`. Fields are a snapshot: summary (where the thread stands), commitments (what you committed to), openQuestions (what you are blocked on), lastAction (what you just did), lastUid (newest UID you have digested). The file overwrites; you do not need to merge with the previous version — the dispatcher reads only the most recent write.| Parameter | Type | Description |
|---|---|---|
| commitments | array | Things you have committed to doing on this thread. |
| lastAction | string | The last action you took on the thread (e.g. "replied UID 41 asking for raw counts"). |
| lastUid | number | Newest message UID you have digested into this memory. |
| openQuestions | array | Things you are waiting on / open questions. |
| summary | string | One-paragraph narrative of where the thread stands. |
| threadId * | string | Stable thread id from get_thread_id. Required. |
schedule_callbackArrange an auto-callback to this same number at a later time. Use this when you cannot finish in the time available, or when the caller needs a break, or when context dictates a follow-up ("call me after 5pm", "try again tomorrow"). The next call picks up with your summary + the transcript so far automatically — say goodbye and the system handles re-dialing. Only ONE callback can be scheduled per call; choose carefully.| Parameter | Type | Description |
|---|---|---|
| delay_seconds * | number | How many seconds from now to call back. Minimum 30, maximum 604800 (7 days). Use larger delays generously — "tomorrow morning" is ~57600s. |
| reason | string | One short line for the audit trail — e.g. "ran out of time before confirming the booking" or "caller asked me to ring back after 5pm". |
| summary_for_next_call * | string | What the next call agent MUST know to pick up where you left off — facts you collected, the caller's name, what was agreed, what is still open. Be concrete; this is all the next agent has from your call. |
search_emailSearch your email inbox for a past message — useful to confirm a detail the caller refers to.| Parameter | Type | Description |
|---|---|---|
| query * | string | What to search your inbox for. |
search_emailsSearch emails by criteria (from, to, subject, text, date range). By default searches the local inbox only. Set searchRelay=true to also search the connected Gmail/Outlook account — results include relay UIDs that can be imported with import_relay_email.| Parameter | Type | Description |
|---|---|---|
| before | string | Messages before date (ISO 8601) |
| from | string | Filter by sender address |
| searchRelay | boolean | Also search the connected Gmail/Outlook account (default: false). Use this to find past emails from the user's main inbox. |
| seen | boolean | Filter by read/unread status |
| since | string | Messages since date (ISO 8601) |
| subject | string | Filter by subject keyword |
| text | string | Search body text |
| to | string | Filter by recipient address |
search_skillsSearch your skill library for a playbook that fits the situation you just hit on this call (billing dispute, debt collector tactics, reservation deadlock, etc). Returns up to 5 ranked matches, each with: id, name, BM25 score, when_to_use (the specific situation the skill is for), first_principle (the playbook's strategic frame), and a `recommendation` field. If `recommendation` says LOAD IT NOW or the top score > 0.3, immediately call load_skill with the top id — do not deliberate. If scores are weak (< 0.15), re-search with a different phrasing instead of loading a poor match. The model that judges "is this the right skill" is YOU — but the recommendation field will tell you what the right move usually is.| Parameter | Type | Description |
|---|---|---|
| query * | string | Plain-language description of the situation, e.g. "rep insists on a commitment date", "the restaurant is fully booked", "I need to dispute a recurring charge after cancellation". |
send_emailSend an email from the agent's mailbox. The PRIMARY primitive for multi-agent coordination. **Use `to` and `cc` as the email standard intends** — `to` is the actor(s) the message is addressed to (one or two recipients in most cases); `cc` is everyone else on the thread for awareness. Lumping every participant on `to` is wrong and defeats the wake gating. WAKE SEMANTICS (0.9.0+): by default only local @localhost recipients on `to:` get a host wake; CC'd local agents receive the mail but don't wake — they see it on their next natural wake. To override: pass `wake: ["alice","bob"]` for specific agents regardless of To/CC, or `wake: "all"` for the pre-0.9.0 "wake every recipient" behaviour, or `wake: []` to deliver silently. External emails are scanned for sensitive content; HIGH severity detections are BLOCKED for owner approval.| Parameter | Type | Description |
|---|---|---|
| attachments | array | File attachments |
| cc | string | CC recipients — the team. Comma-separated, e.g. "vesper@localhost, orion@localhost". CC'd local recipients receive the mail but DO NOT wake by default (0.9.0+). Put the actor on `to`; CC the rest for awareness. |
| html | string | HTML body (optional) |
| inReplyTo | string | Message-ID to reply to (optional) |
| references | array | Message-IDs for threading (optional) |
| subject * | string | Email subject line |
| text | string | Plain text body |
| to * | string | Primary actor — the agent(s) you want to act on this message. Usually one address; rarely two. **Everyone else on the thread goes on `cc`, NOT here.** Lumping all participants on `to` defeats the wake gating: every local @localhost recipient on `to` gets a host turn, so a 5-agent thread = 5 host turns per round. Comma-separated supported but use sparingly. |
| wake | any | Optional wake-control. Accepts: (1) an array of agent names — `["alice","bob"]` — to wake exactly those agents (overrides default To-only behaviour); (2) the string `"all"` to wake every local recipient on To and CC (pre-0.9.0 behaviour); (3) an empty array `[]` to deliver silently with no wakes; (4) omit entirely to use the default — wake local recipients on `To:` only. CC'd recipients NOT in the wake list still receive the mail in their inbox and will see it when they next wake naturally. |
send_test_emailSend a test email through the gateway to verify configuration (requires master API key)| Parameter | Type | Description |
|---|---|---|
| to * | string | Email address to send the test to |
setup_email_domainSet up a custom domain for real internet email via Cloudflare (requires master API key). ADVANCED: Requires Cloudflare account, API token, and a domain. Emails send from agent@yourdomain.com with full DKIM/SPF/DMARC. Optionally configures Gmail SMTP as outbound relay (recommended for residential IPs). After setup with gmailRelay, use setup_gmail_alias for each agent.| Parameter | Type | Description |
|---|---|---|
| cloudflareAccountId * | string | Cloudflare account ID |
| cloudflareToken * | string | Cloudflare API token (Zone>Zone>Read, Zone>DNS>Edit, Zone>Email Routing Rules>Edit, Account>Cloudflare Tunnel>Edit, Account>Workers Scripts>Edit; optional: Account>Registrar: Domains>Edit for domain purchase) |
| domain | string | Domain to use (if already owned) |
| gmailRelay | object | Gmail SMTP relay for outbound delivery (recommended for residential IPs without PTR records) |
| purchase | object | Purchase a new domain (if domain not provided) |
setup_email_relayConfigure Gmail/Outlook relay for sending real internet email (requires master API key). BEGINNER-FRIENDLY: Just needs a Gmail/Outlook email + app password. Agents send as user+agentname@gmail.com. Automatically creates a default agent (secretary) unless skipped. Best for: quick setup, personal use, no domain needed.| Parameter | Type | Description |
|---|---|---|
| agentName | string | Name for the default agent (default: secretary). This becomes the email sub-address, e.g., user+secretary@gmail.com |
| agentRole | string | Role for the default agent (default: secretary) |
| email * | string | Your real email address (e.g., user@gmail.com) |
| imapHost | string | IMAP host (auto-filled for gmail/outlook) |
| imapPort | number | IMAP port (auto-filled for gmail/outlook) |
| password * | string | App password (not your regular password) |
| provider * | string | Email provider (gmail, outlook, or custom) |
| skipDefaultAgent | boolean | Skip creating the default agent (default: false) |
| smtpHost | string | SMTP host (auto-filled for gmail/outlook) |
| smtpPort | number | SMTP port (auto-filled for gmail/outlook) |
setup_gmail_aliasGet step-by-step instructions (with exact field values) to add an agent email as a Gmail "Send mail as" alias. Returns the Gmail settings URL and all field values. Required after domain mode setup with gmailRelay to show correct From address. The agent can automate this via browser tools or present instructions to the user.| Parameter | Type | Description |
|---|---|---|
| agentDisplayName | string | Display name for the alias (defaults to agent name) |
| agentEmail * | string | Agent email to add as alias (e.g., secretary@yourdomain.com) |
setup_guideGet a comparison of email setup modes (Relay vs Domain) AND the optional channels — realtime voice (OPENAI_API_KEY), phone call-control with a 46elks-vs-Twilio provider choice, and the Telegram channel — each with difficulty levels, requirements, pros/cons, and step-by-step instructions. Show this to users who want to set up real internet email, voice calls, phone, or Telegram.setup_operator_emailSave the operator's notification email address for bridge-escalation alerts. When sub-agents mail a host bridge (e.g. `wake: ["codex"]`) AND no fresh host session is available for a headless resume, the dispatcher forwards a digest to this address so the operator gets a phone push (via Gmail / Apple Mail / whichever app handles their address). Master-key scoped. The host agent should call this during bootstrap after asking the operator: "what email should we alert you at when sub-agents need your attention?" — the answer is typically the operator's personal Gmail with mobile push enabled. Idempotent: re-running with a new address updates the config.| Parameter | Type | Description |
|---|---|---|
| email * | string | Operator notification email (e.g. you@example.com). Pass `null` or an empty string to clear an existing setting. |
setup_paymentGet instructions for adding a payment method to Cloudflare (required before purchasing domains). Returns Option A (self-service link) and Option B (browser automation steps). Card details go directly to Cloudflare — never stored by 🎀 AgenticMail.skill_listList available phone-call skill playbooks, optionally filtered by category (e.g. "negotiation", "reservations", "debt-collection") or tag. Returns summaries (id, name, description, tags) — call `skill_load` with the id to get the full playbook.| Parameter | Type | Description |
|---|---|---|
| category | string | Filter by category. Valid: negotiation, customer-service, reservations, medical-admin, legal-admin, finance-admin, real-estate, travel, subscription, home-services, social, civic, employment, debt-collection, other. |
| tag | string | Filter by a single tag (case-insensitive). |
skill_loadLoad the FULL skill playbook by id. Returns the complete JSON document: principles, scripted phrases, tactic priority list, boundaries, success/failure signals, exit strategy. Use the response to ground your next turns on the call — the playbook should drive your phrasing, tactic order, and exit decisions.| Parameter | Type | Description |
|---|---|---|
| id * | string | Skill id (lowercase-hyphenated, e.g. "negotiate-bill-reduction"). |
skill_searchFuzzy-search skills by free-text query against name, description, tags, principles, phrases, and tactic scripts. Use this DURING a call when you need a playbook for the situation you just hit ("the rep is asking for a settlement number — what do I do?"). Returns ranked summaries; load the top match with `skill_load`.| Parameter | Type | Description |
|---|---|---|
| limit | number | Max results (default 10). |
| query * | string | Free-text query, e.g. "rep wants me to commit to payment" or "restaurant fully booked". |
sms_check_codeCheck for recent verification/OTP codes received via SMS. Scans inbound SMS for common code patterns (6-digit, 4-digit, alphanumeric). Use this after requesting a verification code during sign-up flows.| Parameter | Type | Description |
|---|---|---|
| minutes | number | How many minutes back to check (default: 10) |
sms_configGet the current SMS/phone number configuration for this agent. Shows whether SMS is enabled, the phone number, and forwarding email.sms_messagesList SMS messages (inbound and outbound). Use direction filter to see only received or sent messages.| Parameter | Type | Description |
|---|---|---|
| direction | string | Filter by direction |
| limit | number | Max messages (default: 20) |
| offset | number | Skip messages (default: 0) |
sms_parse_emailParse an SMS from a forwarded Google Voice email. Use this when you receive an email from Google Voice containing an SMS. Extracts the sender number, message body, and any verification codes.| Parameter | Type | Description |
|---|---|---|
| emailBody * | string | The email body text to parse |
| emailFrom | string | The email sender address |
sms_read_voiceGet instructions and URL for reading SMS directly from Google Voice web (FASTEST method). Returns the voice.google.com URL and guidance for browser-based SMS reading. Primary method - much faster than email forwarding.sms_recordRecord an SMS message read from Google Voice web or any other source. Saves to SMS database and extracts verification codes. Use after reading a message from voice.google.com.| Parameter | Type | Description |
|---|---|---|
| body * | string | SMS message text |
| from * | string | Sender phone number |
sms_sendSend an SMS text message. Direct provider configs such as 46elks send through the provider API; Google Voice legacy configs return browser-send instructions.| Parameter | Type | Description |
|---|---|---|
| body * | string | Text message body |
| to * | string | Recipient phone number |
sms_setupConfigure SMS/phone number access. Supports Google Voice legacy forwarding and direct 46elks provider delivery/webhooks.| Parameter | Type | Description |
|---|---|---|
| apiUrl | string | 46elks only: optional API base URL override |
| forwardingEmail | string | Google Voice only: email address Google Voice forwards SMS to (defaults to agent email) |
| forwardingPassword | string | Google Voice only: app password for a separate forwarding Gmail |
| password | string | 46elks only: API password |
| phoneNumber * | string | SMS phone number in E.164 format (e.g. +46701234567 or +12125551234) |
| provider | string | SMS provider (default: google_voice) |
| username | string | 46elks only: API username |
| webhookSecret | string | 46elks only: shared secret required on inbound SMS webhooks |
stop_agentHARD-stop an agent mid-task WITHOUT deleting it. Sets the agent's `stopped` flag and (0.9.29+) immediately ABORTS any in-flight worker for that agent — the running SDK call is killed via AbortController, any queued coalesced wakes are dropped, and any deferred rate-limit retries are cancelled. After the stop, the dispatcher refuses to wake the agent for any reason (allowlists, To/Cc, task events all silently no-op). Mail STILL lands in the mailbox, so the email-thread audit trail is preserved. Use this instead of `delete_agent` when you want to halt a churning sub-agent right now and keep the option to read the thread later or resume it. Resume with `resume_agent`. Requires master API key.| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the agent to stop |
| reason | string | Optional free-form reason (e.g. "task superseded", "user requested halt") — stored on the agent row for later audit. |
storageFull database management system for agents. 28 actions: DDL (create/alter/drop/clone/rename tables & columns), DML (insert/upsert/query/aggregate/update/delete/truncate), indexing (create/list/drop/reindex), import/export (JSON/CSV, conflict handling), raw SQL, maintenance (stats/vacuum/analyze/explain), archiving. WHERE supports operators: $gt, $gte, $lt, $lte, $ne, $like, $ilike, $in, $not_in, $is_null, $between. Works on SQLite, Postgres, MySQL, Turso.| Parameter | Type | Description |
|---|---|---|
| action * | string | create_table, list_tables, describe_table, insert, upsert, query, aggregate, update, delete_rows, truncate, drop_table, clone_table, rename_table, rename_column, add_column, drop_column, create_index, list_indexes, drop_index, reindex, archive_table, unarchive_table, export, import, sql, stats, vacuum, analyze, explain |
| column | object | For add_column: {name, type, ...} |
| columnName | string | For drop_column |
| columns | array | For create_table: [{name, type, required?, default?, unique?, primaryKey?, references?: {table, column, onDelete?}, check?}] |
| conflictColumn | string | For upsert/import |
| description | string | For create_table: human-readable description |
| distinct | boolean | SELECT DISTINCT |
| format | string | For export: json|csv |
| groupBy | string | GROUP BY clause |
| having | string | HAVING clause |
| includeArchived | boolean | For list_tables |
| includeData | boolean | For clone_table |
| includeShared | boolean | For list_tables |
| indexColumns | array | For create_index |
| indexName | string | For create/drop_index |
| indexUnique | boolean | For create_index |
| indexWhere | string | Partial index condition |
| indexes | array | For create_table: [{columns, unique?, name?, where?}] |
| limit | number | Max rows |
| newName | string | For rename_table/rename_column/clone_table |
| offset | number | Skip rows |
| oldName | string | For rename_column |
| onConflict | string | For import: skip|replace|error |
| operations | array | For aggregate: [{fn: count|sum|avg|min|max|count_distinct, column?, alias?}] |
| orderBy | string | ORDER BY clause |
| params | array | For sql/explain: query params |
| rows | array | For insert/upsert/import: row objects |
| selectColumns | array | Specific columns to select |
| set | object | For update: {column: newValue} |
| shared | boolean | For create_table: shared across agents |
| sql | string | For sql/explain: raw SQL |
| table | string | Table name |
| timestamps | boolean | For create_table: auto-add created_at/updated_at (default: true) |
| where | object | Filter conditions with operator support |
submit_resultSubmit the result for a claimed task, marking it as completed| Parameter | Type | Description |
|---|---|---|
| id * | string | Task ID |
| result | object | Task result data |
tail_workerTail the log of a running (or recently-finished) dispatcher worker. Use this when check_activity shows a worker has been running a long time or is marked stale, and you want to see what it is actually doing — every tool call, tool result, and assistant chunk is logged as a one-liner. Returns the last N lines (default 80). The workerId comes from check_activity output. Requires master key.| Parameter | Type | Description |
|---|---|---|
| lines | number | How many trailing log lines to return. Default 80, max 1000. |
| workerId * | string | Worker id from check_activity output. |
telegram_configGet the current Telegram channel configuration for this agent — whether it is enabled, the bot username, linked chats, and transport mode. Credentials are redacted.telegram_messagesList stored Telegram messages (inbound and outbound) for this agent, newest first.| Parameter | Type | Description |
|---|---|---|
| chatId | string | Filter by chat id. |
| direction | string | Filter by direction. |
| limit | number | Max messages (default: 20, max: 100). |
| offset | number | Skip messages (default: 0). |
telegram_pollPull and process new Telegram updates (poll-mode transport). Call this on a schedule when the channel is in poll mode to ingest new inbound messages and answer ask_operator questions sent from the operator chat.telegram_sendSend a Telegram message from this agent's bot to a chat. Requires the Telegram channel to be configured (telegram_setup) and enabled.| Parameter | Type | Description |
|---|---|---|
| chatId * | string | Target Telegram chat id. |
| replyToMessageId | number | Optional Telegram message id to reply to. |
| text * | string | Message text to send. |
telegram_setupConfigure the Telegram channel for this agent — register a bot token from @BotFather and link the chat(s) allowed to message the agent. The token is verified with Telegram and stored encrypted. Defaults to poll mode (call telegram_poll on a schedule); pass mode "webhook" with a public HTTPS webhookUrl + webhookSecret for push delivery.| Parameter | Type | Description |
|---|---|---|
| allowedChatIds | array | Additional chat ids permitted to message the agent. An empty allow-list means only the operator chat can reach the agent (fail-closed). |
| botToken * | string | Telegram bot API token from @BotFather (e.g. 123456789:AA...). |
| mode | string | Inbound transport: "poll" (default — pull updates with telegram_poll) or "webhook" (Telegram pushes updates). |
| operatorChatId | string | The chat id of the operator — always allowed to message the agent and to answer ask_operator questions. |
| webhookSecret | string | Webhook mode only: shared secret echoed in the X-Telegram-Bot-Api-Secret-Token header (at least 16 chars, A-Z a-z 0-9 _ -). |
| webhookUrl | string | Webhook mode only: public HTTPS URL Telegram delivers updates to. |
template_sendSend an email using a saved template with variable substitution. Variables like {{name}} are replaced.| Parameter | Type | Description |
|---|---|---|
| bcc | string | BCC recipients |
| cc | string | CC recipients |
| id * | string | Template ID |
| to * | string | Recipient email |
| variables | object | Variables to substitute: { name: "Alice" } |
| wake | array | Optional. Names of the agents who should get a host turn when this template-rendered mail lands. Pass `[]` to deliver silently. Omit to wake everyone CC'd. |
update_metadataUpdate the current agent's metadata. Merges provided keys with existing metadata.| Parameter | Type | Description |
|---|---|---|
| metadata * | object | Metadata key-value pairs to set or update |
wait_for_emailBlock until a matching email (or task) lands in your inbox. Push-based (SSE) — far more efficient than polling. Supports filtering by sender, subject substring, thread (In-Reply-To), or a participants list. The single-most-useful tool for thread-based coordination: send a kickoff email CC'ing your team, then `wait_for_email({ subject: "<core thread subject>" })` to wake on the first reply. Non-matching events that arrive during the wait are ignored — you only resume when something you asked for shows up (or timeout).| Parameter | Type | Description |
|---|---|---|
| from | string | Only resume on an email FROM this address (case-insensitive substring match on the bare address — "orion" matches "orion@localhost"). |
| inReplyTo | string | Only resume on an email whose In-Reply-To header equals this Message-ID. Most precise thread filter — use when you have the exact Message-ID of the message you expect a reply to. |
| includeTasks | boolean | Include task-assignment events as matches (default: true). Set false if you only care about email. |
| participants | array | Only resume on an email from ANY of these addresses (case-insensitive). Use this to wait for any teammate's reply, e.g. ["vesper@localhost", "orion@localhost"]. |
| subject | string | Only resume on an email whose subject contains this string (case-insensitive). The thread's core subject works — "Build a small game" matches "Re: Build a small game". |
| timeout | number | Max seconds to wait (default: 120, max: 300) |
web_searchSearch the web for current information you do not know — facts, opening hours, prices, news. Returns the top results as text. Fast; a brief "one moment" is enough.| Parameter | Type | Description |
|---|---|---|
| query * | string | What to search the web for. |
whoamiGet the current agent's account info — name, email, role, and metadataSecurity checks
Static checks derived from the repository 23 hours ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 11K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- !No dynamic code executionScanned 219 source files and found 28 calls to eval or shell execution, in agenticmail/src/cli.ts:3376, agenticmail/src/cli.ts:3386 and agenticmail/src/shell.ts:3329 among others. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio and Streamable HTTPpackages/mcp/src/index.ts:3, packages/mcp/src/index.ts:4
- Starts other programs
- 71 callsagenticmail/src/bin-host-shim.ts:123, agenticmail/src/cli.ts:438, agenticmail/src/cli.ts:509
- Outbound network calls
- 85 callsagenticmail/src/anthropic-token.ts:126, agenticmail/src/cli.ts:391, agenticmail/src/cli.ts:413
- Writes or deletes files
- No file writes or deletes
- Lockfile
- package-lock.json
Pattern matches on the source text of 219 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 11K words, fetched 23 hours ago. The original in the repository is authoritative.
Read full README