update_jump_logic
Edit a question's Jump Logic. Identify the question with questionId/position (call get_jump_logic first to see current entries and their indices). Provide EXACTLY ONE of these modes: (1) conditions and/or skipTo together with entryIndex — edits that entry in place (these two can be combined in one call, matching the builder where both fields are independently editable on the same entry at once: conditions replaces the entry's whole condition list, skipTo changes its jump target to another question's id or "end"); (2) deleteConditionIndex with entryIndex — removes one condition from that entry (if that empties it, the entry is removed too, nothing left dangling); (3) deleteEntry: true with entryIndex — removes the whole entry (if it was the question's last one, its logics key is removed too); (4) defaultJumpTo alone (no entryIndex needed) — "" clears the question's existing default-jump-to fallback, or a question id/"end" sets/changes it. The conditions/skipTo path is refused outright (no force override) if a condition's source question comes after the OWNING question in the survey — jump logic evaluates right after the owning question is answered, so a source can be that question itself or an earlier one, never a later one.
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": "update_jump_logic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skipTo | No | Changes this entry's jump target — a question id, or "end". Can be combined with conditions in the same call. | |
| 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 question. Provide this OR questionId. | |
| surveyId | Yes | The Survey ID containing the question | |
| conditions | No | Replaces this entry's entire condition list. Can be combined with skipTo in the same call; mutually exclusive with deleteConditionIndex/deleteEntry/defaultJumpTo. | |
| entryIndex | No | Which jump-logic entry to edit — required for every mode except defaultJumpTo. Call get_jump_logic first to see current indices. | |
| questionId | No | The question this jump logic belongs to. Provide this OR position. | |
| deleteEntry | No | true to remove the whole entry. Mutually exclusive with conditions/skipTo/deleteConditionIndex/defaultJumpTo. | |
| defaultJumpTo | No | Sets (a question id or "end") or clears ("") the question's default-jump-to fallback. No entryIndex needed — mutually exclusive with every entry-based mode above. | |
| deleteConditionIndex | No | Removes one condition from this entry by index. Mutually exclusive with conditions/skipTo/deleteEntry/defaultJumpTo. |