GPT-5.6 Programmatic Tool Calling: A Hands-On Developer Guide

Code mode lets GPT-5.6 write JavaScript that composes your tools in an isolated V8 runtime. How it works in the Responses API, programmatic vs direct calling, real token savings, and how it maps to the MCP code execution pattern.