Update form
update_formRename a form and/or replace its JSON (data replaces the whole form: start from get_form) and/or its theme (replaces the whole theme; omitted keeps it). The JSON is validated first and nothing is saved on errors. Returns { id, name, url }. The public page may show the previous version for a few minutes.
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": {
"workspaceId": "<workspaceId>",
"formId": "<formId>"
},
"name": "update_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | SurveyJS Form Library 2.5 JSON (https://surveyjs.io/form-library/documentation); other SurveyJS keys pass through as is. Replaces the whole form; names of all elements must be unique across the form. | |
| name | No | 2-50 characters, unique among the workspace's forms. | |
| theme | No | Look of the public page, built from a SurveyJS theme preset. Replaces the whole theme. | |
| formId | Yes | ||
| workspaceId | Yes |