🧩allowedTools Option
Also known as allowedTools, allowed_tools, Agent SDK allowed tools, Claude Agent SDK allowedTools
The option that lists tools the agent may use with no prompt.
Think of it like
It is like a list of toys a kid may take and not ask.
Example
Leo's agent reads code and runs tests. He allows Read, Glob and Bash(npm test), so it never stops to ask for those.
Why it matters
An agent that stops for each read is slow. One that asks for nothing is a risk.
Definition
Example code
typescript
allowedTools: ["Read", "Glob", "Bash(npm test)"]Common mistake
Key takeaways
- 1Pre-approves tools. No prompt.
- 2Not a full list. Others still exist.
- 3Scoped rules work. Bash(npm *).