upsert_conversation_draft
Saves or updates a caller's conversation draft as a reply or private note, rejecting blank content when metadata is empty. Use it to persist draft messages before sending.
Instructions
Save Conversation Draft
Saves or updates the caller's draft for a conversation. type defaults to reply. The request is rejected with 400 when content is blank and meta is empty or {}, and when meta is larger than 32 KB. The caller must have access to the conversation.
POST /api/v1/conversations/{uuid}/draft
Tags: Conversations
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": {
"uuid": "<uuid>"
},
"name": "upsert_conversation_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | (body) Free-form JSON stored with the draft, at most 32 KB. The code does not constrain its shape. | |
| type | No | (body) Draft type. Defaults to `reply` when omitted or empty. | reply |
| uuid | Yes | Conversation UUID (path parameter) | |
| content | No | (body) Draft content (HTML). Inline images are rewritten to cid: references on save. |