Create form
create_formCreate a form from SurveyJS JSON and an optional theme (default look without it); the JSON is validated first and nothing is saved on errors. Returns { id, name, url } — url is the public page; get_flow_urls provides the flow URL for submitEndpointUrl.
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>",
"name": "<name>",
"data": "<data>"
},
"name": "create_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | 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 | Yes | 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. | |
| workspaceId | Yes |