Write a task form
set_task_formCreate or replace a user task or start event form as a Camunda 8 form-js schema, with each field mapped to a process variable; an empty fields list removes the form.
Instructions
Creates or replaces the form of a user task or start event (a plain task becomes a user task), kept in the diagram file as a form-js schema linked for Camunda 8. Each field key is the process variable it fills in: reuse the names the diagram reads ("Amount > 3000" reads amount; a gateway "Category?" with answer branches reads category). An empty fields list with no schema removes the form. Returns the form id, its variables and the findings.
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": {
"elementId": "<elementId>",
"fields": "<fields>"
},
"name": "set_task_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| intro | No | Short instructions under the heading (Markdown) | |
| title | No | Heading shown at the top of the form, for example the task name | |
| fields | Yes | ||
| schema | No | Advanced: a complete form-js schema as JSON text, used instead of title, intro and fields | |
| elementId | Yes | Id of a diagram element, as returned by get_shapes |