Read File (Deprecated)
read_fileRead a file's full text contents or a character window using offset and limit; output is capped and truncated results explain how to continue. Deprecated: use read_text_file instead.
Instructions
Read the complete contents of a file as text. DEPRECATED: Use read_text_file instead. Use the 'offset' and 'limit' parameters to read a window of characters. Results longer than 50,000 characters are cut short, ending with a notice that says how to get the rest.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| head | No | If provided, returns only the first N lines of the file | |
| path | Yes | ||
| tail | No | If provided, returns only the last N lines of the file | |
| limit | No | Maximum number of characters to return, clamped to the result cap | |
| offset | No | Character position to start reading from (default 0). Use the offset given in a truncation notice to continue |