append_emails
Add more Gmail messages to an existing .md, .json, or .jsonl file for pagination, so the next batch can be saved to the same file.
Instructions
Append more emails to an existing .md, .json, or .jsonl file.
Use this for pagination — fetch 50 emails, save them, then call this
tool to append the next 50 to the same file. Works with .md, .json,
and .jsonl files created by read_emails_full or search_and_save.
Required:
message_ids (list[str]) — Gmail message IDs to fetch and append.
save_path (str) — path to the existing file. File must exist.
Supported extensions: .md, .json, .jsonl
Returns on success:
{"ok": true, "data": {
"appended": true,
"path": "C:\Users\...\my-emails.md",
"count": 50,
"total_size_bytes": 320000
}}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_path | Yes | ||
| message_ids | Yes |