Tool Switcher
AI-generatedSummary
Configure multiple AI tool inputs and apply rules based on specified conditions to dynamically select which tools are provided to an Agent at runtime.
Inputs
- Number of Tool Inputs (required) — Select how many AI tool inputs to connect, ranging from 2 to 10. Each input accepts one AI tool.
- Rules (required) — Define one or more rules that reference specific tool inputs and the conditions under which those tools should be included in the Agent. All tools for which conditions evaluate to true will be included.
Output shape
a single AI tool or toolkit object representing the combined selected tools based on the rules
The output wraps all matching tools together; if multiple tools match, they are combined into a proxy toolkit; if none or invalid requests occur, an error message is returned in the response. The node dynamically determines connected inputs and applies the user-defined rules per execution to select tools.
Examples
Example 1: Select tools based on input parameters
Configure 3 tool inputs; set rules so that Tool 1 is included if data.fieldA equals 'yes' and Tool 2 is included if data.value exceeds 10; at runtime, the node evaluates these conditions and provides the matching tools to the Agent.