Computer use
Some systems have a screen but no API. See how ComputerTool lets a model ask for clicks and typing, how your own harness carries them out, how screenshots close the loop, and how a safety callback can stop a flagged action.
10 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 10 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