Tool
A tool is an operation offered to a model, which the model sees as a name, a natural-language description, and a schema for its arguments.
A tool lets a language model act outside its own text output. Examples include running code, reading a file, searching the web or calling an API. The model never sees the code behind a tool. It sees only the name, the description and the schema that define what arguments the tool accepts.
Models do not call SDKs or run code themselves. Instead, a model emits a structured tool call that names the tool and gives its arguments. The agent harness reads that call and executes it. The harness then feeds the result back to the model as text or images, and the model decides what to do next.
Tools turn a model into an agent that can take steps in the world. Many tools that run code or change files execute inside a sandbox, so that mistakes or harmful actions stay contained. Protocols such as the Model Context Protocol define a common way to offer tools to models. The quality of the description and schema strongly affects how well a model uses a tool.