Browse/Anthropic/Tool Use / Function Calling
Tool Use / Function Calling
Anthropic
$19 · Pro
Define a tool and let Claude call it with structured input.
tool-use.ts
if (block.type === "tool_use") {
Unlock the full snippet
This is a Pro snippet — get all-access for $19, or unlock just this one snippet for $1.
Tool Use / Function Calling — Anthropic Example (TypeScript, Node, Python, Go, PHP, Ruby) | apiexamples