create_form
Generate a new Nettskjema form with required title, language, form type, respondent access, and personal-data settings, then include optional elements.
Instructions
Create a new form with the given settings and optional elements.
The six required settings are taken as named parameters so a model cannot omit them. Additional settings can be provided via extra_settings. If a required setting appears in extra_settings, the named parameter takes precedence.
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": {
"title": "<title>",
"language_code": "<language_code>",
"form_type": "<form_type>",
"respondent_group": "<respondent_group>",
"collects_personal_data": "<collects_personal_data>",
"sensitive_personal_data_collected": "<sensitive_personal_data_collected>"
},
"name": "create_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | The form's title. | |
| elements | No | Optional list of form elements to include when creating the form. | |
| form_type | Yes | The form type. | |
| language_code | Yes | The form's language code (e.g., "en", "no"). | |
| extra_settings | No | Additional settings beyond the six required ones. | |
| respondent_group | Yes | The respondent group (access control). | |
| collects_personal_data | Yes | Whether the form collects personal data. | |
| sensitive_personal_data_collected | Yes | Whether the form collects sensitive personal data. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |