HR: Add form field
hr_add_form_fieldAdd one QUESTION to a form's draft version — the step between hr_create_form and hr_publish_form_version, without which a form created here can never be published (an empty version is refused). 'key' is the STABLE analytics handle the answers are stored under: renaming the label later never moves them, and a key is unique within its version. 'type' is a closed set; a choice field (single_select / multi_select / dropdown) must carry 'options', and 'info_block' takes no answer so it cannot be required. 'analytics_role' is what makes a question COUNT: csat / nps / rating / dropout_reason are the roles hr_feedback_report reads, so a satisfaction question without one is collected and never reported. 'order' defaults to the end of the form. Only a DRAFT accepts fields — a published version is frozen so the answers already collected keep their meaning. Requires confirmation. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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": {
"version_id": "<version_id>",
"key": "<key>",
"type": "<type>",
"label_uk": "<label_uk>"
},
"name": "hr_add_form_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| type | Yes | ||
| order | No | ||
| options | No | ||
| label_en | No | ||
| label_uk | Yes | ||
| required | No | ||
| help_text | No | ||
| version_id | Yes | ||
| analytics_role | No |