get_draft
Retrieves a draft by ID, letting AI agents inspect its subject, recipients, body, attachments, or raw MIME in a chosen format before editing or sending.
Instructions
Retrieves a draft by id.
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": {
"draftId": "<draftId>"
},
"name": "get_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draftId | Yes | ||
| messageFormat | No | MINIMAL: subject, snippet, sender, recipients, date, labels. METADATA_ONLY: no subject/snippet/body. PLAIN_TEXT (recommended): MINIMAL + plaintextBody + attachments (HTML converted to text if needed). FULL_CONTENT (default): also htmlBody. RAW: raw MIME. |