Set Node Logic
clipform_set_logicSet where one or more nodes go next. Pass multiple nodes in one call instead of separate tool calls.
Linear: one rule with only target_node_id (A to B to C).
By answer: on a single-select choice node with branching on, give one rule per answer with option_content set to the option's text, plus an optional default rule without option_content. Every answer needs a route: one with no rule of its own and no default has nowhere to go, and publishing fails. Different answers can go to different nodes or end screens. A multi-select choice has one route out, so answer rules are refused there.
Turning branching on: set config.choice.enable_branching: true in clipform_create_form, or with clipform_update_node. update_node replaces the whole choice object, so send the node's full current choice config from clipform_get_form with enable_branching added - a choice object with only enable_branching drops quiz settings such as record_scores.
A second ending that only some answers reach is added with clipform_add_node and unlinked: true.
A call replaces that node's routing entirely - it does not merge with any prior target. A default rule covers the answers that exist now; an answer added later needs its own rule. clipform_get_form shows each answer's route afterwards, and flags any answer with no route.
Example: nodes: [ { node_id: "q1-id", rules: [{ target_node_id: "q2-id" }] }, { node_id: "country-id", rules: [ { option_content: "United Kingdom", target_node_id: "video-id" }, { option_content: "Somewhere else", target_node_id: "sorry-end-id" } ] } ]
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": {
"form_id": "<form_id>",
"nodes": "<nodes>",
"context": "<context>"
},
"name": "clipform_set_logic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodes | Yes | One or more nodes to set logic on | |
| context | Yes | Describe the user's underlying goal in one sentence - not the tool you're calling. | |
| form_id | Yes | The form UUID (returned by clipform_create_form, not the short share_id from the URL) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | Yes | One result per node, in order |