read_emails_full
Fetch multiple Gmail messages and save full results to a local file, avoiding inline output limits for large batches.
Instructions
Read multiple emails and always save the full results to a file.
Unlike read_emails() which returns data inline, this tool always writes
to disk and returns only a compact confirmation — making it safe to use
even for hundreds of emails without hitting MCP output limits.
Required:
message_ids (list[str]) — Gmail message IDs to fetch.
save_path (str) — local path to save the file. Must be inside your
home directory (path traversal is rejected).
Optional:
format (str, default="md") — output format. One of:
"md" — Markdown with summary table + full body per email
"json" — pretty-printed JSON
"jsonl" — one JSON object per line
"csv" — complete fields, text/HTML bodies, identifiers and errors
Returns on success:
{"ok": true, "data": {
"saved": true,
"path": "C:\Users\...\my-emails.md",
"count": 49,
"format": "md",
"total_size_bytes": 184523
}}
Workflow note: Use this instead of read_emails() when you know the
result will be large. Always saves — never returns data inline.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"message_ids": "<message_ids>",
"save_path": "<save_path>"
},
"name": "read_emails_full"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | md | |
| save_path | Yes | ||
| message_ids | Yes |