read
Retrieve numbered text lines with offset/limit controls, or view PNG, JPEG, GIF, or WebP images up to 3 MiB from the workspace.
Instructions
Reads a text file as numbered lines, or shows a PNG, JPEG, GIF or WebP of up to 3 MiB as an image; offset and limit are for text.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Inside the workspace; relative to it, or absolute; ~ is the home folder. | |
| limit | No | How many lines; 2000 by default. | |
| offset | No | The first line, from 1. |