claude-code - 💡(How to fix) Fix [DOCS] Read tool docs still describe oversized whole-file reads as hard errors [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#60698Fetched 2026-05-20 03:51:49
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Error Message

By default, Read returns the file from the start. Files over a size threshold return an error rather than partial content, prompting Claude to retry with offset and limit to read a specific range. For the Claude Code v2.1.145 release, the Read tool behavior was changed so a whole-file read that exceeds the token limit returns a truncated first page with a PARTIAL view notice instead of hard-failing immediately. The current docs still say the tool returns an error rather than partial content, so they describe the wrong user-visible behavior and omit the PARTIAL view fallback entirely. Files over a size threshold return an error rather than partial content, prompting Claude to retry with offset and limit to read a specific range. | https://code.claude.com/docs/en/tools-reference | 246-250 | Read tool behavior says oversized reads return an error rather than partial content |

RAW_BUFFERClick to expand / collapse

Documentation Type

Incorrect/outdated documentation

Documentation Location

https://code.claude.com/docs/en/tools-reference

Section/Topic

Read tool behavior

Current Documentation

The docs currently say:

Read tool behavior

The Read tool takes a file path and returns the contents with line numbers. Claude is instructed to always pass absolute paths.

By default, Read returns the file from the start. Files over a size threshold return an error rather than partial content, prompting Claude to retry with offset and limit to read a specific range.

What's Wrong or Missing?

This section still documents the old failure mode for oversized whole-file reads.

For the Claude Code v2.1.145 release, the Read tool behavior was changed so a whole-file read that exceeds the token limit returns a truncated first page with a PARTIAL view notice instead of hard-failing immediately. The current docs still say the tool returns an error rather than partial content, so they describe the wrong user-visible behavior and omit the PARTIAL view fallback entirely.

Suggested Improvement

Update the Read tool behavior section to describe the current fallback behavior.

Before:

Files over a size threshold return an error rather than partial content, prompting Claude to retry with offset and limit to read a specific range.

After:

When a whole-file read would exceed the token limit, Read returns a truncated first page labeled as PARTIAL view instead of failing immediately. Claude can then continue with offset and limit to read additional ranges, or raise CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS when a larger full-file read is appropriate.

Impact

Medium - Makes feature difficult to understand

Additional Context

Affected Pages:

PageLine(s)Context
https://code.claude.com/docs/en/tools-reference246-250Read tool behavior says oversized reads return an error rather than partial content

Related Pages:

PageContext
https://code.claude.com/docs/en/env-varsDocuments CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS, which is related to oversized file reads

Total scope: 1 primary page affected

Version context: Behavior change called out in Claude Code v2.1.145

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [DOCS] Read tool docs still describe oversized whole-file reads as hard errors [1 participants]