Skip to content
Tinbox

Tool

update_draft

Edit a draft

SurfacesChat agentMCPCLI

Edit an existing draft with compare-and-swap baseVersion. Use get_draft first to review its complete body and saved followUp. Omit followUp to preserve it, pass {afterDays,body} to replace it, or explicit null to remove it. Editing never sends or schedules a timer. On conflict, read again and reconcile rather than blindly retry.

CLI: tinbox update-draft

Parameters

NameTypeRequiredDescription
idstringyesThe draft id.
baseVersionnumbernoThe version you read before editing.
subjectstringno—
bodyTextstringno—
followUpone ofnoOmit to preserve the saved plan; {afterDays,body} replaces it; explicit null clears it. Draft body may be unfinished; actual send validates strictly.
▸expand followUp
  • option 1object
    • afterDays integerrequired
    • body stringrequired
  • option 2null

Example

json
{
  "id": "<id>"
}