tool if

This block is part of the anthropic group and was last modified in core v15.0.0.

tool if v15.0.0

Pick a tool based on a condition: outputs the true tool when the condition holds, otherwise the false tool. Add elseif branches for more cases.

In pins 3
  • True required
    anthropictool
  • False required
    anthropictool
  • condition required
    condition
Out pins 1
  • tool
    anthropictool

    The selected tool; wire into a message block's tools pin.

tool if else
conditional tool
tool branch

A typical wiring for tool if: the tool out pin feeds send message.

Studio canvas example for the tool if block: typical wiring for tool if.

Version history

Introduced in v15.0.0.


Back to anthropic Return to the main group to view all sub-groups Back to anthropic Return to the group to view all blocks within this group