draft_reply
Create a reply draft to an existing email, maintaining the conversation thread. Use this to compose a response that can be reviewed before sending. Automatically adds 'Re: ' prefix to subject and preserves email threading. The reply_all parameter determines whether to reply to all original recipients or just the sender. Plain text supports markdown formatting.
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": {
"email_id": "<email_id>",
"body_text": "<body_text>"
},
"name": "draft_reply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_id | Yes | ID of the email to reply to (from search_email or get_email) | |
| body_html | No | Optional HTML version for rich formatting | |
| body_text | Yes | Reply message text. Supports markdown formatting | |
| reply_all | No | true: reply to sender and all recipients. false: reply only to sender. Default: true |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| message | Yes | ||
| createdMessage | Yes |