update_display_logic
Edit one Display Logic entry on a question, or on the submit screen — the "Display the question only, If..." / "Display the submit button only, If..." conditions in the builder's Logic tab. Identify the TARGET with questionId/position, OR pass submitScreen: true for the submit button's Display Logic instead (same map, same rules, different target; exactly one of questionId/position/submitScreen), and the entry with entryIndex (call get_display_logic first to see current entries and their indices — always 0, since either target can only ever have one entry). Provide EXACTLY ONE of: conditions (replaces the entry's whole condition list), deleteConditionIndex (removes one condition — if that empties the entry, the entry is removed too, nothing left dangling), or deleteEntry: true (removes the whole entry; if it was the last entry, its displayLogics key is removed too). The conditions (replace) path is refused outright (no force override, nothing changed) if a condition's source question comes after the target question in the survey — its answer wouldn't exist yet at that point, so the condition can never be satisfied (never applies to a submit target, since submit always comes after every question). Reorder the questions or pick an earlier source first. Question/submit-level Display Logic ONLY — does not cover Answer Logic (that's update_answer_logic) or thank-you-screen display logic (that's update_thankyou_screen_logic).
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_display_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 position of the target question. Provide this OR questionId OR submitScreen. | |
| surveyId | Yes | The Survey ID containing the question | |
| conditions | No | Replaces this entry's entire condition list. Provide this OR deleteConditionIndex OR deleteEntry — exactly one. | |
| entryIndex | Yes | Which display-logic entry to edit — call get_display_logic first to see current indices. | |
| questionId | No | The target question's id. Provide this OR position OR submitScreen. | |
| deleteEntry | No | true to remove the whole entry. Provide this OR conditions OR deleteConditionIndex — exactly one. | |
| submitScreen | No | true to target the submit screen's Display Logic instead of a question. Mutually exclusive with questionId/position. | |
| deleteConditionIndex | No | Removes one condition from this entry by index. Provide this OR conditions OR deleteEntry — exactly one. |