Skip to content
BENIBIX Learn

Read Tool

AI⌨️ Claude CodeBuilt-in Tools

Also known as Read, Claude Code Read tool, Read(path)

The tool Claude uses to open a file and see what is in it.

Think of it like

It is like opening a book to read a page.

Example

Emma asks why a page is slow. Claude uses Read on the page's code, sees a loop inside a loop, and points to the exact line.

Why it matters

Almost every task starts with reading, so this is the tool Claude uses most.

Definition

The Read tool opens a file and gives Claude its text, with a number on each line. It can also show Claude pictures, read PDF files in parts and open Jupyter notebooks. It reads files, not folders. One call returns up to 25,000 tokens by default, so Claude reads a long file in pages. Read never asks for permission. A Read rule with a path also covers Grep, Glob and LSP.

Example code

json
{"permissions": {"deny": ["Read(./.env)"]}}
Never let Claude read the secrets file.
Read opens the file the other tools found.

Common mistake

Thinking a deny rule on Read only stops Read. It also stops Grep, Glob and LSP on that path.

Key takeaways

  1. 1
    Opens a file. With line numbers.
  2. 2
    Text and more. Pictures, PDFs, notebooks.
  3. 3
    No prompt. Reading is safe.

Learn it properly