get_answer_logic
Read one answer choice's Answer Logic — the per-option (or per-matrix-row/-column) "if / then show" rule that decides whether THAT SPECIFIC choice appears to a respondent, based on an earlier answer. This is the SAME displayLogics map question/submit Display Logic uses, just keyed by the option's/row's/column's own id instead of a question's id. This is NOT Jump/Skip Logic (that's get_jump_logic) — there is no "jump to a question"/"end survey" action anywhere in this data; the only possible outcome is showing (or, matrix only, showing/hiding) this one choice. A separate builder feature only available on multiplechoice, checkboxes, dropdown, colorpicker, multiplenumber, multipletext, ranking, and matrixrating questions. Identify the question with questionId or position, then the choice with optionId or optionPosition — for a matrixrating question, also pass target: "rows" or "columns" first to say which axis it belongs to (required for matrix, rejected for every other type). Read-only. hasAnswerLogic: false with an empty entries array if there's none. Each entry's visibility ("show" or "dontShow") is only present for a matrixrating target — a plain option's Answer Logic always means "show this option when the conditions match," full stop, matching question-level Display Logic's own fixed semantics; matrix rows/columns can instead mean "don't show it when they match." When describing this to the end user, describe conditions in plain English — never quote raw field names like qid/conidition/entryIndex verbatim. Before stating whether a choice currently HAS Answer 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_answer_logic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Required (and ONLY valid) for a matrixrating question — which axis optionId/optionPosition resolves against. | |
| 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 option's/row's/column's own id. Provide this OR optionPosition. | |
| position | No | 0-based index into the survey's questions array. Provide this OR questionId. | |
| surveyId | Yes | The Survey ID containing the question | |
| questionId | No | The question's id, as seen in get_survey_details's output | |
| optionPosition | No | 0-based index into the question's options (or matrixrating rows/columns, per `target`). Provide this OR optionId. |