Features /AI Debug Context
Debug any email with AI in one click
LocalMail.dev generates a complete markdown snapshot of any captured email and puts it on your clipboard, ready to paste into ChatGPT, Claude, or Perplexity. Headers, body, metadata: everything an AI needs to help you debug is included automatically.
Get LocalMail.dev for $24One button. Full email context for any AI.
Debugging a broken email template used to mean copying headers, body text, and HTML separately and pasting them into an AI with a long explanation of what you were looking at. LocalMail.dev removes all of that friction.
Click the Copy for AI button in any email's toolbar. LocalMail.dev instantly builds a structured markdown document containing the full email context: subject, from, to, date, size, all headers as a code block, the plain text body, and the complete HTML source. One click, one paste.
The output is formatted so that AI assistants can parse it accurately. Headers appear as a labelled code block. Body content is clearly separated. You can paste it directly into ChatGPT, Claude, Perplexity, or any other assistant and ask your question without any additional setup.
- Copies full email context to clipboard in one click
- Includes all headers, plain text body, and HTML source
- Works with ChatGPT, Claude, Perplexity, and any markdown-capable AI
- Save as a .md file for sharing or archiving
- Named automatically after the email subject line
Paste this into ChatGPT, Claude, or any AI to debug your email.
# Email Debug Context
## Metadata
- **Subject:** Welcome to MyApp
- **From:** [email protected]
- **To:** [email protected]
- **Date:** 1 May 2026, 10:14
## Headers
```
MIME-Version: 1.0
Content-Type: multipart/alternative
Message-ID: <[email protected]>
```
## HTML Body
```html
<html>
<body>Hi Alex...</body>
</html>
```
How to use Copy for AI
The Copy for AI feature is built into the email viewer. No setup or configuration is needed.
-
1
Open any captured email
Select an email from the LocalMail.dev inbox. Any email that has arrived through the local SMTP server is supported.
-
2
Click the AI button in the toolbar
The Copy for AI button (sparkle icon) is in the top-right toolbar of the email viewer. Click it to open the AI modal.
-
3
Copy or save the markdown
Click Copy markdown to put the full email context on your clipboard, or click Save .md to download it as a file.
-
4
Paste into your AI assistant
Open ChatGPT, Claude, Perplexity, or any other AI. Paste the markdown and ask your question. The AI has everything it needs to help.
Frequently asked questions
How does AI email debugging work in LocalMail.dev?
LocalMail.dev has a Copy for AI button in the email viewer toolbar. Clicking it generates a structured markdown document containing the email subject, from, to, date, all headers, plain text body, and full HTML body. You paste this into ChatGPT, Claude, Perplexity, or any other AI assistant to get instant help debugging the email.
What does the AI markdown output include?
The markdown output includes a metadata section (subject, from, to, date, size), a full headers block formatted as a code block, the plain text body if present, and the full HTML source. Everything an AI needs to understand and debug the email is included in one paste.
Can I save the AI debug output as a file?
Yes. The Copy for AI modal includes a Save .md button that downloads the full markdown as a file named after the email subject. You can save it for later reference, share it with a colleague, or attach it to a bug report.
Which AI tools work with the LocalMail.dev markdown output?
The markdown output works with any AI tool that accepts text input, including ChatGPT, Claude, Perplexity, Gemini, and local models running in tools like Ollama or LM Studio. The format is plain CommonMark markdown with fenced code blocks.
Ready to debug faster?
Get LocalMail.dev for $24
One-time purchase. macOS, Windows, and Linux. 14-day refund policy.