The tool runner handles the agentic loop, error wrapping, and type safety so you don't have to. When you need human-in-the-loop approval, custom logging, or conditional execution, use the manual loop instead.
Instead of manually handling tool calls, tool results, and conversation management, the tool runner automatically:
Runs tools when Claude calls them
Handles the request/response cycle
Manages conversation state
Provides type safety and validation
The tool runner is in beta and available in the Python SDK, TypeScript SDK, C# SDK, Go SDK, Java SDK, PHP SDK, and Ruby SDK.