Prompt Buddy logoPrompt Buddy

openai · OpenAI Platform Docs

Using tools

Explains how to extend model capabilities by integrating built-in tools, custom function calling, tool search, and remote MCP servers via the API or Agents SDK.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Using tools

Explains how to extend model capabilities by integrating built-in tools, custom function calling, tool search, and remote MCP servers via the API or Agents SDK.

When To Use

Use when you need to implement agentic workflows that require web search, file retrieval, custom function execution, or remote MCP server integration.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/using-tools-workflow-guide.mdAn overview of available tools in the OpenAI platform including custom code execution, internet access, and usage across the API and Agents SDK.Questions about an overview of available tools in the OpenAI platform including custom code execution, internet access, and usage acr...
examples/using-tools-openai-platform-python-tools-usage.pythonA Python script demonstrating how to initialize an OpenAI client and pass tool definitions like filesearch to a model request.Exact payloads, commands, or snippets shown in A Python script demonstrating how to initialize an OpenAI client and pass tool definitions like filesearch to a model...
examples/using-tools-openai-platform-tools.javascriptA JavaScript code example demonstrating how to implement tool calling using the OpenAI client library.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to implement tool calling using the OpenAI client library.
examples/using-tools-openai-platform-docs-using-tools.csharpA C# code example demonstrating how to initialize an OpenAIResponseClient and add a file search tool to the response creation options.Exact payloads, commands, or snippets shown in A C# code example demonstrating how to initialize an OpenAIResponseClient and add a file search tool to the response...
examples/using-tools-openai-api-tools-curl-request.bashA curl command demonstrating how to send a request to the OpenAI API using the tools parameter.Exact payloads, commands, or snippets shown in A curl command demonstrating how to send a request to the OpenAI API using the tools parameter.
examples/using-tools-openai-tools-javascript-mcp-implementation.javascriptA JavaScript example demonstrating how to use the OpenAI client to call a Model Context Protocol (MCP) server for dice rolling.Exact payloads, commands, or snippets shown in A JavaScript example demonstrating how to use the OpenAI client to call a Model Context Protocol (MCP) server for dic...
examples/using-tools-openai-tools-python-mcp-server-integration.pythonA Python script demonstrating how to use the OpenAI client to call a Model Context Protocol (MCP) server for dice rolling.Exact payloads, commands, or snippets shown in A Python script demonstrating how to use the OpenAI client to call a Model Context Protocol (MCP) server for dice rol...
examples/using-tools-openai-tools-mcp.csharpA C# code example demonstrating how to use Model Context Protocol (MCP) tools with the OpenAI client.Exact payloads, commands, or snippets shown in A C# code example demonstrating how to use Model Context Protocol (MCP) tools with the OpenAI client.
examples/using-tools-openai-platform-docs-using-tools.typescriptA TypeScript code example demonstrating how to define and implement a weather tool using the @openai/agents library.Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to define and implement a weather tool using the @openai/agents library.
examples/using-tools-openai-tools-python-function-tool.pythonA Python code example demonstrating how to define a tool using the function_tool decorator for OpenAI tool calling.Exact payloads, commands, or snippets shown in A Python code example demonstrating how to define a tool using the functiontool decorator for OpenAI tool calling.
examples/using-tools-openai-agents-typescript-tool-usage.typescriptA TypeScript example demonstrating how to define an agent and assign another agent as a tool using the @openai/agents library.Exact payloads, commands, or snippets shown in A TypeScript example demonstrating how to define an agent and assign another agent as a tool using the @openai/agents...
examples/using-tools-openai-platform-docs-using-tools-python-agent-implementation.pythonA Python code example demonstrating how to define an agent with a summarizer tool using the agents library.Exact payloads, commands, or snippets shown in A Python code example demonstrating how to define an agent with a summarizer tool using the agents library.

What This Skill Covers

  • Here's an overview of the tools available in the OpenAI platform—select one of them for further guidance on usage.
  • Main sections: Available tools, Usage in the API, Usage in the Agents SDK.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.openai.com/api/docs/guides/tools.md