read_file
Read text, images, Word, Excel, PDF, or URL content with line offsets and limits for controlled file access.
Instructions
Read a file: text, images (PNG/JPEG/GIF/WebP), Word .docx (text, headings, tables), Excel .xlsx (rows as tab-separated values; sheet = name or 0-based index), PDF (text; built in on macOS, pdftotext elsewhere). With is_url=true, path is an http(s) URL to fetch. offset = lines to skip; negative offset reads the last N lines. length = max lines (capped by fileReadLineLimit).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| sheet | No | ||
| is_url | No | ||
| length | No | ||
| offset | No |