Read a file from the workspace
workspace_files_readRead an uploaded file (PDF, Word, PowerPoint, spreadsheet, text) as markdown. Find file ids with workspace_folders_browse (a folder's items of kind workspace_file) or search_workspace. For anything long, call with outline: true first: it returns the headings with their character offsets and the total length. Then read only the sections you need with offset and maxChars. Spreadsheets come back as tables. A file that can't be read as text says so; don't guess at its contents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | ||
| offset | No | Character offset to start from. Default 0. | |
| outline | No | Return the headings and their offsets instead of text. | |
| usedFor | No | The thing you're reading this file to work on (the page, change, flow…), when there is one. The file then shows it was used there, and the thing shows the file it drew on. Leave it out for a general question. | |
| maxChars | No | How much to return. Default 12000. | |
| workspace | No | Workspace slug. Ignored when the workspace is already set. |