Question 187
Scenario: Developer Productivity with Claude
An Agent SDK tool helps engineers explore unfamiliar codebases, understand legacy systems, generate boilerplate and automate repetitive tasks, using the built-in tools (Read, Write, Bash, Grep, Glob) plus MCP servers.
Read the full scenario lessonUsing the @anthropic-ai/claude-agent-sdk, you want to programmatically narrow the set of tools available to a specific query loop to prevent the agent from making unintended modifications. Which configuration is used to restrict tools in the SDK?