Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesClaude API from A to ZTool Use basics
A user message with two content blocks, text and image, and the model’s replyClaude Code terminal: the claude -p command with Read and Edit allowedRetries after a 429 error: each pause is twice as long, then success
Course

Claude API from A to Z

Module 1 · Getting Started
01Your first API call02The Messages API structure03Choosing a model
Module 2 · Prompt Engineering for Claude
04Designing system prompts05The 1M context window06XML tags in prompts07Few-shot prompting
Module 3 · Tool Use
08Tool Use basics09Tool patterns10Multi-turn conversations11Computer Use and Browser Use
Module 4 · Production
12Streaming13Message Batches API14Prompt Caching15Vision16Production patterns
Claude API from A to Z · Lesson 8

Tool Use basics

Defining tools with JSON Schema, strict mode, tool_choice on current models, parsing tool_use blocks, sending tool_result back, and the SDK tool runner.

30 min readUpdated Dec 2, 20262 questions in quizReady prompt included
🔒

Full lesson access

Tool Use basics opens after free sign-up: 7 days of full access to every course, no card needed.

Start 7-day free trial
Then Pro: $9/mo or $79/yr

View plans →

One trial lesson is open without sign-up: what a large language model is →

In this lesson
The tool use loopDefining a tooltoolchoice on current modelsParsing tooluse and replyingTool runner: the SDK runs the loopPracticeReady promptQuiz
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
Get started free