Read File
read_fileRead a file from a Floot project (cat -n style); offset/limit for large files, column to start mid-line (a capped read names the offset and column to continue from). Paths: components/Name.tsx, components/Name.module.css, helpers/Name.tsx, pages/name.tsx, pages/name.pageLayout.tsx, endpoints/route_POST.ts, endpoints/route_POST.schema.ts, static/file.txt, base.css. include_references:true also lists the files that reference this one (imports, queueTask/runCode names, endpoint URL strings): check it before renaming or deleting, or use rename_file, which rewrites importers. Hosted assets read too (/_cdn/ as upload_asset / generate_image return it, private/): png/jpeg/gif/webp come back as an image you can see (≤3.75 MB), text as text, other binaries as a summary. No typecheck by default: diagnostics:"auto" appends a .ts/.tsx file's current type errors when the VM is warm, "wait" boots it and forces the check. older_than walks the file's history: "current" shows it just before its latest change, the returned cursor steps further back; restore by writing the old content with write_file.
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": {
"projectId": "<projectId>",
"path": "<path>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| limit | No | ||
| column | No | ||
| offset | No | ||
| projectId | Yes | ||
| older_than | No | Omit (or leave empty) to read the current file. Set it only to read the file as it was BEFORE an earlier change. Pass "current" for the version just before the latest change to it, then the cursor each result gives you to step one change further back — until you find a good version, then write it back with write_file (or merge by hand). Not a version number: each step is one recorded change to the file. Type errors and references are skipped for past versions. | |
| diagnostics | No | ||
| include_references | No |