In Depth

Tool use is implemented via structured output: the model generates a JSON call specifying which tool to invoke and with what arguments, the host application executes it and returns results, and the model incorporates those results into its next response. OpenAI, Anthropic, and Google all expose native tool-use APIs. Tool use is foundational to building AI agents capable of real-world task completion.