1File viewing tool that reads and displays the contents of files with line numbers, allowing you to examine code, logs, or text data.
 2
 3WHEN TO USE THIS TOOL:
 4
 5- Use when you need to read the contents of a specific file
 6- Helpful for examining source code, configuration files, or log files
 7- Perfect for looking at text-based file formats
 8
 9HOW TO USE:
10
11- Provide the path to the file you want to view
12- Optionally specify an offset to start reading from a specific line
13- Optionally specify a limit to control how many lines are read
14- Do not use this for directories use the ls tool instead
15
16FEATURES:
17
18- Displays file contents with line numbers for easy reference
19- Can read from any position in a file using the offset parameter
20- Handles large files by limiting the number of lines read
21- Automatically truncates very long lines for better display
22- Suggests similar file names when the requested file isn't found
23
24LIMITATIONS:
25
26- Maximum file size is 250KB
27- Default reading limit is 2000 lines
28- Lines longer than 2000 characters are truncated
29- Cannot display binary files or images
30- Images can be identified but not displayed
31
32WINDOWS NOTES:
33
34- Handles both Windows (CRLF) and Unix (LF) line endings automatically
35- File paths work with both forward slashes (/) and backslashes (\)
36- Text encoding is detected automatically for most common formats
37
38TIPS:
39
40- Use with Glob tool to first find files you want to view
41- For code exploration, first use Grep to find relevant files, then View to examine them
42- When viewing large files, use the offset parameter to read specific sections