Overview of Agent Tool Categories
mainTools allow an Agent to take actions such as fetching data, calling external APIs, executing code, or using a computer. The OpenAI Agents SDK supports seven distinct categories of tools:
- Hosted OpenAI tools: Tools that run on OpenAI servers alongside the model (e.g., web search, file search, code interpreter, image generation, tool search).
- Built-in execution tools: SDK-provided tools that execute outside the model (e.g.,
computer useandapply_patchrun locally;shellcan run locally or in hosted containers). - Function tools: Local functions wrapped in a JSON schema for LLM invocation.
- Agents as tools: Exposing an entire Agent as a callable tool.
- MCP servers: Attaching a Model Context Protocol server (local or remote).
- Sandbox capabilities: Attaching workspace-scoped tools (shell, filesystem, skills, memory, or compaction) to a
SandboxAgent. - Experimental: Codex tool: Wrapping the Codex SDK as a function tool for workspace-aware tasks.