edit_answer_choice
Change the text and/or score of ONE existing answer choice on a question in a BlockSurvey team draft, keeping its id and every other choice untouched (so skip logic, calculations, etc. that reference it keep working). Identify the choice with optionId or choicePosition. Provide value and/or score. For choice-style questions (multiplechoice, checkboxes, dropdown, dropdownmultiple, ranking, colorpicker — for colorpicker, value is a text prompt to pick a color for, e.g. "Preferred logo color"; the respondent picks the actual color when answering) this works on options; for matrix questions you must also say whether you mean rows or columns via target. Not applicable to consent (its choices are fixed) or any other question type without answer choices. Use get_survey_details first to get the question's and choices' current ids.
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": {
"surveyId": "<surveyId>"
},
"name": "edit_answer_choice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| score | No | The choice's new score. Omit to leave unchanged. | |
| value | No | The choice's new text. Omit to leave unchanged. | |
| target | No | For matrix questions only: which grid axis to edit. Required if the question is a matrix type, ignored otherwise. | |
| teamId | No | Which team workspace to act in (ids come from get_account_info or list_surveys). Optional: if omitted, the server uses the team that owns the given surveyId, or your only team. Required for create_survey when you belong to several teams. | |
| optionId | No | The existing choice's id, from get_survey_details. Provide this OR choicePosition. | |
| position | No | 0-based index into the survey's questions array. Provide this OR questionId, not required to provide both. | |
| surveyId | Yes | The Survey ID containing the question | |
| questionId | No | The question's id, as seen in get_survey_details's output | |
| choicePosition | No | 0-based index of the existing choice within the question's choice list (e.g. 2 = the 3rd choice). Provide this OR optionId. |