GhostPaw Email

v0.5.11
io.github.GhostPawJS/email Checked 35 minutes ago Published 21 days ago

Email tools with a local SQLite cache and IMAP/SMTP account configuration.

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

mail_read

Read mailbox state: folder list, message queue, thread view, single message body, attachment metadata, or raw EML export. Use when: Inspect folders, cached messages, threads, attachments or raw message content. Not for: Use mail_search to find messages by query or mail_organize to change them.

ParameterTypeDescription
view *stringWhat to read.
folderstringFolder path (required for queue/message/attachment/eml).
limitintegerMaximum messages to return (queue view).
partPathstringPart path for a specific attachment (optional for attachment view).
refreshbooleanFetch live folder list from server before returning (folders/queue view).
threadIdstringThread ID (required for thread view).
uidintegerMessage UID (required for message/attachment/eml).
unreadOnlybooleanFilter to unread messages only (queue view).

mail_compose

Compose and send email: send new message, reply, forward, save/update/send a draft. Use when: Send, reply, forward, or save and manage a draft after its content is agreed. Not for: Use mail_read to inspect an existing message without sending or saving content.

mail_organize

Organize messages: mark read/unread/starred/answered, copy, move, archive, trash, junk, label, or manage folders. Use when: Change message flags, labels, destinations or folder organization. Not for: Use mail_read or mail_search when only inspection is requested.

mail_sync

Manage the IMAP connection lifecycle and sync local state: connect, disconnect, reconnect, sync folders, or refresh the folder list. Use when: Connect, disconnect, reconnect, refresh folders or synchronize the cache. Not for: Use mail_read for cached content or the network watch stream for continuous monitoring.

ParameterTypeDescription
action *string
bodiesstringBody fetch strategy for sync (default: missing).
foldersarrayFolders to sync or watch (optional — defaults to all subscribed folders).