Skip to content
  1. Home
  2. Guides and documents
  3. Claude Cookbooks: Tool Use

Claude Cookbooks: Tool Use

Notebooks on tool calling, memory and context management with Claude

What it is

The tool-use section of the Claude Cookbooks. Notebooks cover a calculator tool, a customer service agent, structured JSON extraction, tool choice, parallel tools, Pydantic validation, programmatic tool calling, tool search, the memory tool and automatic context compaction. For developers wiring Claude to their own functions and data.

Good for

  • Extract structured JSON with tools
  • Build a customer service agent
  • Add memory and context compaction

What you need

Claude API key; Python and Jupyter

Worth knowingNo section README; you browse the notebooks one by one. Some rely on beta API features that can change.

Sources

The summary is ours, written from the README. Spotted an error? See how we work.

More for coding

See the topic →
  • Karpathy-Inspired Claude Code Guidelines

    multica-ai/andrej-karpathy-skills

    One CLAUDE.md with four rules against common LLM coding mistakes

    GuideGitHub stars: 233k
  • OpenAI Cookbook

    openai/openai-cookbook

    Official examples and guides for common OpenAI API tasks

    GuideGitHub stars: 77k
  • Awesome Claude Code

    hesreallyhim/awesome-claude-code

    Curated list of Claude Code skills, agents, tooling and plugins

    GuideGitHub stars: 58k
  • Claude Cookbooks

    anthropics/claude-cookbooks

    Anthropic's notebooks and recipes for building with Claude

    GuideGitHub stars: 55k