‹Tool calling
intermediate
The model asks your code to run a function, then uses the result in its answer.
- Describe toolsGive each tool a name, description and JSON schema.
- Model decidesIt replies with a tool call and arguments.
- You run itYour code executes the function.
- Return resultSend the output back; the model answers.
Explain 1/5
Source: Claude docs: Tool use