Read a file
fs_readRead a text file from the project: path, or paths for up to 20 files at once. Paths start with "workspace/" (code) or "data/". Long files come in pages: pass offset (line, 1-based) and limit (lines). With paths, each file shows its first limit lines (default 400) under a header line, a longer one says the offset to continue from, a missing or binary file is said for that file, and files past one answer's size are listed as not read (200 KB, or about 25 KB for apps that keep tool results short, such as Claude Code: read a few at a time there). Binary files are refused. env production reads the live site's file (its code as published, its own data/), read-only: when the live site misbehaves, look at what it really has, and fs_diff compares it with the preview.
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": {
"project": "<project>"
},
"name": "fs_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | preview (default), or production: the live site's files, read-only (its code as published plus its own /data), for the project's owner and editors. | preview |
| path | No | Path starting with "workspace/" (the code, /workspace) or "data/" (runtime files, /data). | |
| limit | No | ||
| paths | No | Up to 20 files in one call, instead of path, e.g. ["workspace/package.json", "workspace/src/app.ts"]. | |
| offset | No | ||
| project | Yes | Project slug or id. |