tool_use
ToolsDefinition
A content block type in Claude's response indicating the model wants to call a specific tool. Contains 'id', 'name', and 'input' fields. The agent must execute the tool and return results in a tool_result content block for the conversation to continue.
Example Usage
When response.content[0].type == 'tool_use', extract the tool name and inputs, execute the function, and return results.