Built-in Tools
Definition
The tools Claude Code / the Agent SDK ship with — the exam focuses on picking the right one, especially Grep vs Glob vs Read, instead of a wasteful large Read.
Key points
Grep— searches file CONTENTS (by pattern).Glob— finds files by NAME pattern.Read— loads a full file into context.Bash— runs shell commands;Write/Edit— modify files.- Full built-in set (exact names):
Read,Write,Edit,Bash,Monitor,Glob,Grep,WebSearch,WebFetch,AskUserQuestion. - Choosing
Grep/Globover a broadReadconserves context — a context-management best practice.
Why it matters for the exam
- Domain 2 explicitly tests picking the right built-in tool vs a large
Read(which bloats context / causes context rot). - Developer Productivity scenarios hinge on this selection.
Common gotchas
- Using
Readto "search" a big file is the wrong answer — useGrepfor contents,Globfor filenames. Grepsearches contents,Globsearches names — do not swap them.
See also
Sources
Referenced by
Practice questions optional · AI
Generate fresh practice questions about this concept with AI. These are not vault-verified.