What is 'tool use' (also called function calling) in the context of Claude?
Select an answer to reveal the explanation.
Short Explanation
Tool use is how Claude signals that an external function should be called, then uses the result in its response. You define the tool, Claude asks for it, and your application runs it and feeds the output back.
Full Explanation
Tool use allows developers to define functions (tools) that Claude can call during a conversation. Claude signals its intent to use a tool by returning a structured 'tool_use' content block with the tool name and arguments. The developer's application then executes the actual function and returns the result to Claude, which incorporates it into its final response. This enables Claude to access real-time data, call APIs, run computations, etc. The idea of Claude physically using hardware tools in the real world is a literal misinterpretation. The idea of Claude automatically writing and executing Python scripts without developer oversight describes autonomous code execution, which is a different and more complex capability. The idea of converting Claude's text output into executable machine code describes compilation, completely unrelated.