Add answer option
add_answer_optionAdd one answer option to a single_select / multi_select / ranking / matrix question.
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": {
"survey_id": "<survey_id>",
"qid": "<qid>",
"answer": "<answer>"
},
"name": "add_answer_option"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qid | Yes | Question id (qid from list_questions). | |
| code | No | Answer code, max 5 chars (auto A, B, C… when omitted). | |
| answer | Yes | Answer text. | |
| img_url | No | Optional image URL for the answer. | |
| is_term | No | True = this answer screens the respondent out. | |
| has_other | No | True = adds an 'Other, please specify' box. | |
| survey_id | Yes | Survey id (see list_surveys, or the survey_id returned by a create tool). | |
| fixed_position | No | Pin to a 1-based slot while the rest shuffle (with randomise_answers). |