Tools Are What Make Agents Useful
An AI that can only talk is a chatbot. An AI that can act is an agent. Tools are the bridge. When you give Claude tools, you give it the ability to interact with the real world — read files, run commands, search code, write output, and more.
The Agent SDK ships with a set of built-in tools that cover the most common agent operations. You do not need to define these yourself — they come ready to use with the tools configuration option.
The Built-In Tools
When you set tools: "defaults", your agent gets access to these core tools:
**/*.ts finds all TypeScript files. src/**/test.* finds test files in src. Fast file discovery.Tools in Action
Here is an agent that uses multiple tools to accomplish a real task — analyzing a project structure:
import { Claude } from "@anthropic-ai/claude-agent";
const agent = new Claude({
model: "claude-sonnet-4-6",
tools: "defaults",
systemPrompt: `You are a code analyst. When asked about a project:
1. Use Glob to find all source files
2. Use Read to examine key files (package.json, main entry)
3. Use Grep to find patterns the user asks about
4. Summarize your findings clearly.`,
});
// The agent will chain multiple tools automatically
const result = await agent.query(
"Analyze this project. What framework does it use? How is it structured?"
);
console.log(result.text);
// Claude uses Glob to find files, Read to examine them,
// and produces a detailed analysis