Abstract base class for tools
Tools allow Claude to use external functions during conversations.
Subclass this to create custom tools, or use the Anthropic.tool helper
for inline tool definitions.
Instance methods
allowed_callers
Allowed callers for this tool (beta)
Sourcecache_control
Cache control for prompt caching on this tool definition
Sourcedefer_loading?
Whether to defer loading this tool (beta)
Sourcedescription
Human-readable description of what the tool does
Sourcename
The name of the tool (used by Claude to identify it)
Sourcerequired_properties
Override to specify which input properties are required
Source