Skip to content
BENIBIX Learn

--tools Flag

Also known as claude --tools, --tools ""

It sets which built-in tools Claude has in a session.

Think of it like

It is like you pack only a hammer and a saw. The other tools stay home.

Example

Lucy wants a review that cannot change any file. She starts with --tools "Read,Grep,Glob", so Claude has no Edit or Bash to use.

Why it matters

A tool that is not there cannot be misused, however the prompt is worded.

Definition

--tools sets which built-in tools Claude has in this session. Name them, such as "Bash,Edit,Read", and the rest are gone. An empty "" turns all of them off, and "default" gives the normal set. It does not touch MCP tools. To take those away too, add --disallowedTools "mcp__*".

Example code

bash
claude --tools "Read,Grep,Glob"
A session that can only read and search.
--tools is the first gate: which tools exist at all.

Common mistake

Thinking it limits MCP tools too. It only covers built-in tools. Use --disallowedTools "mcp__*" for those.

Key takeaways

  1. 1
    Names the set. The rest are gone.
  2. 2
    "" or default. None or normal.
  3. 3
    Built-in only. Not MCP tools.

Compare

Learn it properly