AnthropicToolDefinition
A tool definition in Anthropic’s format. Unlike OpenAI which wraps
tools in {type: "function", function: {...}}, Anthropic uses a
flat structure with input_schema (§7.5).
Class Diagram
Section titled “Class Diagram”---
title: AnthropicToolDefinition
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class AnthropicToolDefinition {
+string name
+string description
+dictionary input_schema
}
Yaml Example
Section titled “Yaml Example”name: get_weatherdescription: Get the current weather for a cityProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| name | string | The tool name |
| description | string | A description of what the tool does |
| input_schema | dictionary | JSON Schema describing the tool’s input parameters |