Skip to content

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).

---
title: AnthropicToolDefinition
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class AnthropicToolDefinition {
        +string name
        +string description
        +dictionary input_schema
    }
name: get_weather
description: Get the current weather for a city
NameTypeDescription
namestringThe tool name
descriptionstringA description of what the tool does
input_schemadictionaryJSON Schema describing the tool’s input parameters