gmail_draft_show
Retrieve a Gmail draft by its draft id to get the current content, avoiding stale message ids that change on save. Returns YAML at the chosen format.
Instructions
Read one Gmail draft by its draft id (e.g. r-1234567890, the draft_id from gmail_draft_list). Use this rather than gmail_message_read on the draft's message id, which goes stale on the next save. Returns Gmail's drafts.get response: the draft id plus its message, rendered at format — minimal, metadata, full (default) or raw, the same values as gmail_message_read. When output_file is set, writes the YAML to that path and returns a short summary instead (always YAML, even for raw — not a decoded .eml). Read-only (gmail.readonly is enough). Mirrors omni-dev gmail draft show. Output is YAML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | `minimal` (ids/labels only), `metadata` (headers + snippet), `full` (default; parsed MIME structure), or `raw` (base64url RFC 2822 source) — the same values as `gmail_message_read`'s `format`. | |
| account | No | Selects a named Gmail account instead of the ambient `--account`/`OMNI_DEV_GMAIL_ACCOUNT` resolution — e.g. `work`. Omit to use the resolved default account (or the legacy single-account credentials, if no named accounts are configured). Call `gmail_account_list` to discover configured names. | |
| draft_id | Yes | Gmail draft id, e.g. `r-1234567890` — the `draft_id` field of a `gmail_draft_list` row. NOT a message id: a message id from `gmail_search` or `gmail_message_read` fails with "No draft with id". Required. | |
| output_file | No | When set, writes the rendered draft to this path as YAML and returns a short YAML summary (path/bytes/format) instead of the inline body. Even with `format: raw` the file is the YAML envelope, not a decoded `.eml`. |