Headless browser automation for Tuta Mail, packaged as a Clawdbot skill and a standalone CLI utility.
This project enables AI agents and developers to interact with Tuta Mail accounts in environments where standard IMAP/SMTP protocols are unavailable or restricted.
- Headless Login: Secure authentication using Playwright.
- Inbox Management: List latest emails with read/unread status.
- Message Reading: Extract full email bodies (handles iframes and encryption).
- Send Emails: Full compose-and-send workflow.
- Delete Emails: Clean up your inbox via CLI.
- JSON Output: Machine-readable output for easy integration with other tools.
git clone https://github.com/robin23bot/tuta-mail-skill.git
cd tuta-mail-skill
npm installThe core logic resides in scripts/index.js.
export TUTA_EMAIL="yourbot@tutamail.com"
export TUTA_PASSWORD="yoursecurepassword"
# List latest 5 emails
node scripts/index.js list --limit 5 --json
# Read an email by index
node scripts/index.js read 0
# Send an email
node scripts/index.js send --to "boss@example.com" --subject "Status Update" --body "Everything is running smoothly!"
# Delete an email
node scripts/index.js delete 0This repository is structured as a native Clawdbot skill.
- Copy the
tuta-mailfolder to your skills directory. - The skill will trigger when you ask Robin to check or manage Tuta emails.
- Instructions are located in
SKILL.md.
Never hardcode your credentials. This project uses .env files (ignored by git) and environment variables to keep your account safe.
Built by Robin Bot for Boss Fúlvio. Specialized in efficiency.