update_thankyou_screen_logic
Edit a thank-you screen's Display Logic. Identify the screen with screenId/position (omit both for position 0) and the entry with entryIndex (call get_thankyou_screen_logic first to see current entries and their indices). Provide EXACTLY ONE of: conditions and/or variable/variableValue together with entryIndex (edits that entry in place — conditions and variable can be combined in one call, matching the builder where both are independently editable on the same entry: conditions replaces the entry's whole condition list, variable: "" clears its "Assign to text variable", any other value sets/changes it paired with variableValue — must be a name that ALREADY EXISTS in the survey's variable list (this tool can't create one, and refuses an unrecognized name), and variableValue must be a fixed value, never recall/piping syntax — refused if it looks like {{prefix:id}}, since it would never actually resolve to the respondent's answer); deleteConditionIndex with entryIndex (removes one condition — if that empties the entry, the entry is removed too); or deleteEntry: true with entryIndex (removes the whole entry; if it was the screen's last one, its logics key is removed too).
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>",
"entryIndex": "<entryIndex>"
},
"name": "update_thankyou_screen_logic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| position | No | 0-based index into thankyouScreens[]. Provide this OR screenId. Omit both for position 0. | |
| screenId | No | The thank-you screen's id. Provide this OR position. | |
| surveyId | Yes | The Survey ID containing the thank-you screen | |
| variable | No | "" clears this entry's variable assignment; any other value sets/changes it (pair with variableValue) — must be the name of a variable that ALREADY EXISTS in the survey's variable list (including the reserved defaults ref/source/medium/result/responseID, or one created via the builder's Settings → Variables) — this tool cannot create a new one, and an unrecognized name is refused. Can be combined with conditions in the same call. | |
| conditions | No | Replaces this entry's entire condition list. Can be combined with variable in the same call; mutually exclusive with deleteConditionIndex/deleteEntry. | |
| entryIndex | Yes | Which logic entry to edit — call get_thankyou_screen_logic first to see current indices. | |
| deleteEntry | No | true to remove the whole entry. Mutually exclusive with conditions/variable/deleteConditionIndex. | |
| variableValue | No | The FIXED value assigned to `variable` when the entry's conditions match — stored and shown exactly as typed, never resolved for recall. Do NOT put `{{prefix:id}}` recall/piping syntax in here expecting it to capture a respondent's actual answer — it will not work, and is refused outright. Only meaningful together with a non-empty variable. | |
| deleteConditionIndex | No | Removes one condition from this entry by index. Mutually exclusive with conditions/variable/deleteEntry. |