read_file
Read a file. Text: offset is the zero-based first line and length the line count (default 1000); a negative offset reads the last N lines. Returns a "[Reading N lines from … (total: T lines, R remaining)]" header, then the text. Also reads images (as images), PDF (offset/length count pages; options.ocr auto|force|off, Korean/English OCR), DOCX (outline; docxMode text|outline|xml) and spreadsheets (sheet, range: 2D values). For web pages use read_url.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| isUrl | No | ||
| range | No | ||
| sheet | No | ||
| length | No | ||
| offset | No | ||
| options | No | ||
| deviceId | No | Computer name or id from list_devices. Optional with one computer online or a default set. | |
| docxMode | No | ||
| docxPart | No | ||
| maxBytes | No | ||
| maxImages | No | ||
| extractImages | No | ||
| workSessionId | No | Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work. |