Plain text · sha256 80fb15d2d15c
The description, rendered
This renders the markdown inside the description, so it isn’t quite the description itself.The raw view and the plain text are the bytes as they were sent.
Reads a file from the local filesystem.
file_pathmust be an absolute path.- Reads up to 2000 lines by default.
- When you already know which part of the file you need, only read that part. This can be important for larger files.
- Results are returned using cat -n format, with line numbers starting at 1
- Reads images (PNG, JPG, …) and presents them visually. Reads PDFs via the
pagesparameter (e.g. "1-5", max 20 pages/request; required for PDFs over 10 pages). Reads Jupyter notebooks (.ipynb) as cells with outputs. - Reading a directory, a missing file, or an empty file returns an error or system reminder rather than content.
- Do NOT re-read a file you just edited to verify — Edit/Write would have errored if the change failed, and the harness tracks file state for you.
What it accepts
4 parameters The JSON parameter schema sent beside this description, 851 characters of it. Name, type, then whether the client marked it required.file_path
string
required
The absolute path to the file to read
limit
integer
optional
The number of lines to read. Only provide if the file is too large to read at once.
offset
integer
optional
The line number to start reading from. Only provide if the file is too large to read at once
pages
string
optional
Page range for PDF files (e.g., "1-5", "3", "10-20"). Only applicable to PDF files. Maximum 20 pages per request.
sha256 012b3f1d0393 · the schema as the client sent it:
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"file_path": {
"description": "The absolute path to the file to read",
"type": "string"
},
"limit": {
"description": "The number of lines to read. Only provide if the file is too large to read at once.",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
"offset": {
"description": "The line number to start reading from. Only provide if the file is too large to read at once",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"pages": {
"description": "Page range for PDF files (e.g., \"1-5\", \"3\", \"10-20\"). Only applicable to PDF files. Maximum 20 pages per request.",
"type": "string"
}
},
"required": [
"file_path"
],
"type": "object"
}