Change Draft Schedule
qubrics_mailbox_control_draft_scheduleReschedule or cancel a saved draft's scheduled send using expected revision and schedule version; set scheduled_for to null to cancel before sending begins.
Instructions
Reschedule or cancel a saved draft send only when the user asks. Requires mailbox.read and email.send. Pass the current expected_revision and expected_schedule_version; scheduled_for=null cancels. Cancellation fails once sending has begun.
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>",
"expected_revision": "<expected_revision>",
"expected_schedule_version": "<expected_schedule_version>",
"scheduled_for": "<scheduled_for>"
},
"name": "qubrics_mailbox_control_draft_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draftId | Yes | Stable draft ID. | |
| If-Match | No | Current draft ETag; both revision and schedule version remain required. | |
| mailbox_id | No | Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox. | |
| scheduled_for | Yes | New future time within 30 days, or null to cancel and make the draft editable. Cancellation fails once sending has begun. | |
| expected_revision | Yes | Exact saved content revision. | |
| expected_schedule_version | Yes | Current schedule version; stale requests return conflict. Repeating the last identical request returns its current result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |