Attach a workbook
- Drop a
.xlsxfile into the composer or reference one already in the workspace. - OpenWork keeps the original bytes out of the model request. The file is copied under
.opencode/openwork/inbox/chat-attachments/and the agent receives a compact preview instead: every sheet name, its used range and formula count, and the first rows of each sheet as a grid with real row numbers and column letters. - The preview names the workspace path of the attached file, so the agent can read the rest of it on demand.
.xls, .numbers, and .ods files are not read; save them as .xlsx first.
Ask about any sheet or range
The agent has three workbook tools and uses them on its own when a request involves a spreadsheet:spreadsheet_inspectlists every sheet with its used range, row and column counts, formulas, merged ranges, number formats, and header row.spreadsheet_readreturns rows from one sheet as a grid. The agent can page through large sheets, restrict itself to an A1 range such asB2:F40, and show formulas instead of values.spreadsheet_writecreates a.xlsxwith one or more sheets from rows of values.
- “Which rows on the Pipeline sheet close this quarter?”
- “Compare the totals on Q2 and Q3 and tell me what changed.”
- “Show me the formulas behind column F.”
Get a workbook back
Ask for an Excel deliverable and the agent writes it withspreadsheet_write:
- Numbers stay numeric and booleans stay booleans, so sums and filters work in Excel.
- Formulas are written only when the agent asks for one explicitly; text it copies from anywhere else is always stored as text, even when it begins with
=. Formulas recalculate when the file opens, and formulas that reach outside the workbook (web requests, other programs, other files) are refused. - The first row of each sheet is bold and frozen as a header unless the agent is asked otherwise, and columns are sized to their content.
- The result appears in the artifact panel, where you can preview and download it.
Limits
- Paths that pass through a symbolic link are refused, for reading and for writing; keep workbooks in real folders under the workspace.
- Workbooks up to 12 MB compressed, with a 2 MB limit per worksheet part (roughly 30,000 text cells per sheet).
- Up to 64 sheets read, 32 sheets and 50,000 cells written per workbook.
-
Flat, single-table data is usually better as
.csv, which the agent can read and write directly.