tool switch

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

tool switch v15.0.0

Pick a tool by matching an expression against case values (with an optional default). Wire the result into a message block's tools pin.

In pins 2
  • expression required
    value

    The expression to match against the case values.

  • default
    anthropictool

    Tool used when no case matches.

Out pins 2
  • tool
    anthropictool

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

  • matched
    condition

    True when a non-default case matched.

tool case
switch tool
tool selector

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

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

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