Tools and Function Calling Lab
Tools Lab
Educational tools that actually run in your browser. Each tool has an input schema (JSON Schema), permissions and expected errors.
Loading the Tools and Function Calling Lab…
Suggested labs in this lab
Choosing tools and simulating their failure Tool Selection & Failure
To see how the right tool is chosen for each type of request, and how retrying affects things when a tool fails.
- Open the Tools Lab (open ↗)
- Try three different requests: an arithmetic operation, a question about a concept, and a request to read a file, and notice the tool chosen for each request (calculator, knowledge_search and file_reader)
- In the simulator, add a Tool node with the db_search tool, write suitable args and run
- Enable the fail option for the Tool node and run with retry=0 for the Agent node
- Raise retry to 3, run again and compare the log
- After the tool, add a Condition node on last_ok to route the failure to Output with a clear message
What you will notice: You will find that the type of request determines the tool, that enabling fail produces a tool-failure error after the attempts are exhausted, and that raising retry does not fix a permanent failure but shows repeated attempts in the log. And with the Condition node the run ends with a structured output instead of a sudden stop.
