Open main menu
Article
Quizzes
Tools
EN
Article
Quizzes
Tools
All quizzes
/
AI APIs & SDKs
/
How do you...
How do you provide tool definitions to the Anthropic Messages API?
Pass a tools array where each element contains a name, description, and input_schema following JSON Schema
Describe the tools in natural language inside the system prompt
Register tools via a separate /tools endpoint before making any messages call
Upload a Python function file and the API will auto-generate the schema
Submit answers