Save form draft
save_form_draftReplace a form’s entire draft definition and name, preserving draft history. Read get_form first and use its draft_revision as base_revision. Send a new UUIDv7 mutation_id per edit; retries must reuse the exact same payload and ID. Existing publication stays unchanged. Re-read and reconcile on draft_conflict. read_docs explains the definition format and every error.
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": {
"form_id": "<form_id>",
"base_revision": "<base_revision>",
"mutation_id": "<mutation_id>",
"name": "<name>",
"definition": "<definition>"
},
"name": "save_form_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Complete form name. An empty string uses Untitled form. | |
| form_id | Yes | Form UUID returned by list_forms or create_form. | |
| definition | Yes | Complete draft definition object from get_form, including unchanged properties; not a partial patch. | |
| mutation_id | Yes | New UUIDv7 per edit. Reuse only for an identical retry. | |
| base_revision | Yes | Current draft_revision from get_form. |