OpenAI Responses API Agents API Programmatic Tool Calling Function Calling Tool Search

OpenAI Programmatic Tool Calling: Orchestrate Tools with JavaScript

Source: OpenAI API documentation — Programmatic Tool Calling Editorial note: This independently published companion preserves the guide’s technical structure and key examples in a condensed form. The official documentation is the canonical and most current reference. Programmatic Tool Calling lets a model write and run JavaScript that coordinates its available tools. Instead of returning every intermediate result to the model, a generated program can run calls concurrently, apply loops and conditions, combine results, and emit a smaller final value. ...

September 11, 2026 · 10 min · 1945 words · OpenAI