Read file
read_fileRead plain text files (source, config, Markdown, scripts, logs) from the local computer. Use offset and length to page through large files, with negative offset reading from the end.
Instructions
Read a plain text or line-oriented file on this computer: source, config, Markdown, scripts or logs. Use read_document for PDF, DOCX, XLSX and other structured documents. Legacy .docx/.pdf extraction remains supported for compatibility. Use offset and length to page through large text files; a negative offset reads from the end.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of the file to read. Relative paths resolve against the runtime working directory. | |
| length | No | Maximum number of lines to return. | |
| offset | No | Zero-based first line to read. Negative values read the last N lines. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Human-readable result of the tool call. |