Draft in Gmail
draft_email_in_gmailPut a generated email (an artifact_id from generate_email) in the user's Gmail drafts, addressed to the recipients they named. Nothing is sent. The email has to be unlocked first: a watermarked draft is refused and the user unlocks it from the card. Only works on mailboxes connected under a legacy modify grant; the tool says so if not. Returns a link to the draft.
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": {
"artifact_id": "<artifact_id>",
"to": "<to>"
},
"name": "draft_email_in_gmail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Optional cc address(es), comma-separated. | |
| to | Yes | The recipient's email address (comma-separate several). | |
| account | No | Email address of the connected mailbox to draft in. Omit for the first one. | |
| artifact_id | Yes | The artifact_id generate_email returned. |