get_display_logic
Read a question's (or the submit screen's) Display Logic — the "Display the question only, If..." / "Display the submit button only, If..." conditions in the builder's Logic tab that decide whether it's shown at all, based on an earlier answer. Identify the question with questionId (from get_survey_details) or its 0-based position, OR pass submitScreen: true to read the submit button's own Display Logic instead (displayLogics[survey.submit.id] — same map, same shape, just a different target; exactly one of questionId/position/submitScreen). Read-only. This is NOT Jump/Skip Logic (that's get_jump_logic — a routing decision, never a visibility one) — the only outcome in this data is shown-or-hidden. Question/submit-level Display Logic ONLY — does NOT cover Answer Logic (per-option/per-matrix-row-or-column display rules, a separate builder feature keyed by option/row/column id instead — that's get_answer_logic) or thank-you-screen display logic (a different, unrelated mechanism — that's get_thankyou_screen_logic). Returns an empty result cleanly if there's none. When describing this to the end user, describe conditions in plain English ("if Q2's answer is X") — never quote raw field names like qid/conidition/entryIndex verbatim. Before stating whether a question/the submit screen currently HAS display logic, or what it contains, call this tool fresh and read its result — never assert this from memory of an earlier call in this conversation, including your own earlier edits; the survey may have changed since then, including edits you made yourself.
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": "get_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 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 | |
| submitScreen | No | true to read the submit screen's Display Logic instead of a question's. Mutually exclusive with questionId/position. |