Tool call

A request from an AI model to run one action, such as a search or a file write, which the surrounding program carries out.

By Mackenzie Bowes · mackenzie@mackenziebowes.com · @_mackenziebowes on X

Tool use (also called function calling) lets Claude call functions that you define or that Anthropic provides.

From Tool use with Claude (Claude API docs, Anthropic, undated).

Anthropic's page says Claude "determines when to call a tool based on the user's request and the tool's description. It then returns a structured call that your application runs (client tools) or that Anthropic runs (server tools)."

The model chooses a tool call; a hook fires whether or not it chose to. Each tool call shows up as a step in a trace.

Pages that use this term