Question Update Text
question_update_textRewrite a question's wording, and its answer options, matrix rows/columns or scale labels, in one language; also how you write a translation. Send the question's current answer_type and the full itemDetails for that language (all answer_options, not only the changed one), both from survey_get. langCode must be one of the survey's languages, and auto-translate must be off for it unless it is the primary language. A missing language is rejected, so add it first (survey_lang_create where this connection has it, otherwise the user adds it in the editor at editorUrl from survey_get). Needs surveyVersion = versions.current; the result returns the next one. On a published survey the new text is live at once.
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": {
"surveyItemId": "<surveyItemId>",
"surveyVersion": "<surveyVersion>",
"langCode": "<langCode>",
"text": "<text>",
"answer_type": "<answer_type>"
},
"name": "question_update_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The full new question text | |
| langCode | Yes | One of the survey's languages (survey_get lists them), e.g. "en" | |
| answer_type | Yes | The question's current answer_type from survey_get; any other value is rejected as not found (change the type with question_update) | |
| itemDetails | No | Localized details for this language (answer_options, rows/columns, labels, ...). Required for types that have them; send the full object, not a partial one. | |
| surveyItemId | Yes | Question ID (survey_items[].id from survey_get) | |
| surveyVersion | Yes | Current survey version: versions.current from survey_get, or the surveyVersion your last edit returned. A stale version is rejected (WRONG_VERSION). The result returns the next one as surveyVersion. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |