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
valueThe expression to match against the case values.
- default
anthropictoolTool used when no case matches.
Out pins 2
- tool
anthropictoolThe selected tool; wire into a message block's tools pin.
- matched
conditionTrue 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.

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
