# Read Tool

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

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** Read, Claude Code Read tool, Read(path)

## Think of it like

It is like opening a book to read a page.

## 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

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.

## Example code

```json
{"permissions": {"deny": ["Read(./.env)"]}}
```

Never let Claude read the secrets file.

## Why it matters

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

## Common mistake

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

## Three principles

- **Opens a file.** With line numbers.
- **Text and more.** Pictures, PDFs, notebooks.
- **No prompt.** Reading is safe.

## Related terms

- [Claude Code Built-in Tool](https://learn.benibix.com/term/ai/claude-code-built-in-tool)
- [Edit Tool](https://learn.benibix.com/term/ai/edit-tool)
- [Grep Tool](https://learn.benibix.com/term/ai/grep-tool)
- [Permission Rule](https://learn.benibix.com/term/ai/permission-rule)

## Taught in

- [Claude Code File Tools](https://learn.benibix.com/learn/ai-claude-code/claude-code-file-tools): Claude Code, 9/16

![Glob finds files by name, Grep finds lines inside them, Read opens one, then Edit changes a part or Write replaces it all.](https://learn.benibix.com/diagrams/ct-file-tools.svg)

---

Source: https://learn.benibix.com/term/ai/read-tool
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
