Skip to content

feat(filesystem): support line-offset text file reads#4461

Open
psyche314 wants to merge 1 commit into
modelcontextprotocol:mainfrom
psyche314:feat/filesystem-read-offset-limit
Open

feat(filesystem): support line-offset text file reads#4461
psyche314 wants to merge 1 commit into
modelcontextprotocol:mainfrom
psyche314:feat/filesystem-read-offset-limit

Conversation

@psyche314

@psyche314 psyche314 commented Jul 3, 2026

Copy link
Copy Markdown

Summary

  • Add offset and limit parameters to read_text_file and the deprecated read_file alias.
  • Add streaming line-range reading so callers can read a bounded range without loading the whole file.
  • Validate incompatible parameter combinations and document the new behavior.
  • Add unit tests for line-range reads and parameter validation.

Testing

  • npm test
  • npm run build

Add offset and limit parameters to read_text_file/read_file so callers can read a bounded range of lines from a text file.
Also add streaming line-range reading, parameter validation, README documentation, and unit tests.

Co-authored-by: ChatGPT <noreply@openai.com>
@psyche314 psyche314 force-pushed the feat/filesystem-read-offset-limit branch from b2b77e1 to 8c910e3 Compare July 3, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant