---
title: "tool switch · RUAL Documentation"
description: "Pick a tool by matching an expression against case values (with an optional default). Wire the result into a message block's tools pin."
canonical: https://docs.rual.nl/block-types/anthropic/anthropicconnection_tool_switch
language: en
---

# tool switch

This block is part of the [`anthropic`](https://docs.rual.nl/block-types/anthropic) group and was last modified in core [`v15.0.0`](https://docs.rual.nl/core-versions/150000).

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

- expression required `value` The expression to match against the case values.

- default `anthropictool` Tool used when no case matches.

- 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](https://docs.rual.nl/block-types/anthropic/anthropicconnection_tool_switch): the `tool` out pin feeds [send message](https://docs.rual.nl/block-types/anthropic/anthropicconnection_message).

![Studio canvas example for the tool switch block: typical wiring for tool switch.](https://docs.rual.nl/canvas-examples/anthropicconnection_tool_switch.png)

### Version history

Introduced in [`v15.0.0`](https://docs.rual.nl/core-versions/150000).
