Tool search and programmatic tool calling
Two ways to keep an agent with many tools fast. See how tool search loads tool definitions only when the model needs them, and how programmatic tool calling lets the model write one small script that makes several tool calls.
11 minPro
Checking your access…
Inside this lesson
- An animation you play, pause and step through, with each part saying what it is doing.
- The real code beside it, with the lines for each step lit up.
- Practice mode, where you route each message yourself, and a short quiz.
- About 11 minutes.
Written from the official documentation
In this module: Tools
- Function toolsTurning a Python function into a tool.Pro
- Tool arguments, timeouts and errorsField constraints, timeouts, failure messages and image output.Pro
- Hosted toolsWeb search, file search, code interpreter and image generation.Pro
- Tool search and programmatic tool callingLoad tools on demand and let the model script several calls.Pro
- Shell, apply patch and Codex toolsRun commands and edit files locally or in a hosted container.Pro
- Computer useGive an agent a screen, a mouse and a keyboard through your code.Pro