read_file
Read a file (up to 1 MiB). Text comes back as text; other bytes as base64 with encoding='base64'.
Works on your workspaces and any public one. For larger files use get_file_link. With receipt (0.62.0), the
exact bytes of that save (the number file_history's receipts give), so a citation <path>@<receipt> can be
re-fetched and checked against its sha256; older saves are for the workspace's members, and a deleted file's
saves aren't served.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The file to read, like 'drafts/report.md'. | |
| receipt | No | Optional: a save's number (file_history's receipts; the files listing gives the latest) to read exactly the bytes of that save instead of the current ones. | |
| api_token | No | Your hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set. | |
| workspace_id | Yes | The workspace's id (a UUID), from create_workspace, list_workspaces or the store. |