---
title: "Tool call"
url: https://www.daytona.com/definitions/t/tool-call
---

# Tool call

A tool call is the structured output a model emits to invoke a tool.

A tool call is a structured request in which a language model names a function and supplies its arguments, so that a host program can run it. It lets the text a model produces drive actions in the world. The arguments are values such as a file path or a search query, filled in by the model. A model may make several calls in one reply, or none at all.

A language model only produces text. The model writes the request in a fixed format, the host program reads it and does the work, and the result goes back to the model. This split keeps every effect in code that people wrote and can inspect. The model never learns how a tool works inside, only its name, its description, its argument schema and what it returns.

Tool calls are how an AI agent reads files, searches the web and runs code. Each call is one step of the agent loop, and its result shapes the step after it. A long task can take many calls, each adding a round trip to the model. A call that runs code usually runs inside a sandbox, apart from the host program, though possibly on the same machine.

## Related terms

- [Agent harness](https://www.daytona.com/definitions/a/agent-harness.md)
- [Agent loop](https://www.daytona.com/definitions/a/agent-loop.md)
- [Agent trace](https://www.daytona.com/definitions/a/agent-trace.md)
- [Code interpreter](https://www.daytona.com/definitions/c/code-interpreter.md)
- [Episode and trajectory](https://www.daytona.com/definitions/e/episode-and-trajectory.md)
- [Latency](https://www.daytona.com/definitions/l/latency.md)
