Documentation / Artifact types
Sheets
Sheets is a shared multi-sheet spreadsheet powered by a Rust/WASM formula engine and stored locally as an operational edit log (sheet/edits.jsonl). Use it for budgets, trackers, project schedules, inventories, record tables, and financial models that both you and your agent edit together.
When NOT to use Sheets: Don't use it when the user explicitly asks for a raw
.csvor.xlsxfile without an interactive sheet, or for narrative/d3 executive dashboards connected to live MCP data sources (use Data).
Key features
- Full Rust/WASM formula engine: Formulas recalculate automatically as cells change across multiple worksheets, with locale-aware formatting.
- Formatting & layout: Number/currency/percent/date formats, fonts, fills, borders, merged cells, auto-styled tables with column filter buttons, frozen panes, and grouped rows/columns.
- Data controls & rules: Dropdown validation menus, checkboxes, and conditional formatting rules.
- Charts & interactive panels: Embed charts drawn directly from cell ranges, plus custom interactive panels (sliders, buttons, and inputs on their own tab wired to live assumption cells and formulas).
- Real-time collaboration & history: Live cursors, cell/range-anchored comments, full version history, and per-cell edit history.
- Connected tables: A tab whose rows come from a connector call the agent makes. The owner's Refresh (or Load data before the first rows) asks the agent, which makes the call with its own tool and hands the records back with
refresh, or says why there are none; the table's bar shows that reason. The first refresh of a call asks the owner to confirm. While the agent works on a refresh, another press is turned away for up to a minute; if the agent ends without records or a reason, the owner can press again after that. - Your AI model in the editor: With a model source set up on this computer, the owner's sheet can ask it: Suggest tools in a cell's menu (type what you want), and features such as formulas, conditional formatting rules and charts from words, and version summaries. The first ask opens Open Artifacts' consent dialog, where you pick a source and allow the sheet (exporting an
.xlsxwith charts, whose descriptions the model writes, asks there too, without calling a model); summaries and other asks made in the background wait until the sheet is allowed and never open the dialog themselves. The Shell's AI badge counts the calls. These features are hidden where no model is to be had: for guests, on a site set toOA_SAMPLE=off, and with an older Open Artifacts. On a site they use your own key, added in the same dialog and kept in your browser (Hosting). - Imports & exports: Import CSV files; export to Excel (
.xlsx) or CSV (per worksheet) from Share → Export or CLI, plus portable.ziparchives.
How to use (for users)
Create a spreadsheet
/open-artifacts sheets a monthly household budget with categories, actual vs plan, and totals
/open-artifacts sheets a SaaS 12-month financial model with interactive pricing & churn sliders
/open-artifacts sheets a hiring tracker with status dropdowns, checkboxes, and conditional formattingOr start with no agent: on the home page, click New artifact, pick Sheets, and name it. A blank sheet opens in its editor and you type in the cells yourself. What you Send to agent waits until a session takes the sheet.
Edit, analyze & export
- Direct cell editing: Type values and formulas (
=SUM(...),=IF(...), etc.), filter tables, add worksheets, or format cells right in the browser. - Comment on specific cells: Select a cell or range (e.g.
B4:C6), leave a comment (e.g. "add a YoY growth column and chart it"), and click Send to agent. - Audit changes: Inspect version history or cell-level history to see how a number changed.
- Export: Open Share → Export to download an Excel (
.xlsx) workbook or a worksheet as CSV.
How to use (for agents)
- Type ID:
sheets(type_url: "open-artifacts://type/sheets") - Storage model: Structured operational workbook under
<root>/sheet/(sheet/sheet.json+sheet/edits.jsonl). Never edit these files directly—always use theread,update,refresh,batch, andwidgetactions.
Workflow & commands
| Task | Under daemon (MCP tools) | Standalone CLI (artifact-types/sheets/scripts/cli.mjs) |
|---|---|---|
| Create | Artifact {action: "publish", type_url: "open-artifacts://type/sheets", title, open: "after_first_write"} |
open-artifacts open <root> --type sheets --title "<title>" --json |
| Read workbook / cells | Artifact {action: "call", url, name: "read", args: {payload: {kind: "readSheets" | "readCells" | ...}}} |
open-artifacts read <root> '<payload>' |
| Apply edits | Artifact {action: "call", url, name: "update", args: {payload: {kind: "applyEdits", base: <rev>, edits: [...]}}} |
open-artifacts update <root> '<payload>' |
| Add chart / interactive | Artifact {action: "call", url, name: "batch", args: {calls: [...]}} |
open-artifacts batch <root> <file> |
| Inspect selection | Artifact {action: "call", url, name: "context"} |
open-artifacts context <root> [--json] |
| Export XLSX / CSV | Artifact {action: "call", url, name: "export", args: {file?: "<abs path>"}} |
open-artifacts export <root> [file.xlsx | --csv --sheet <name>] |
| Refresh a connected table | Artifact {action: "call", url, name: "refresh", args: {payload: {sheet, callDigest, records} | {sheet, callDigest, failed: {why}}}} |
open-artifacts refresh <root> '<payload>' |
Key rules for agents
- Read
artifact-types/sheets/reference/core.md(andbuilding.mdfor tables,charts.md/interactives.mdfor visuals) before your first write. - Always read current cells before calling
writeCells(writes cannot be undone and replace every cell in the block) and always pass the latestbaserevision (0on a brand-new empty folder). On a revision refusal, callreadSheetsand re-read before retrying. - Put the most important columns first (typical narrow panes show ~6 columns), place summary/input blocks above tables with an empty row between, and freeze rows down through the table header.
- For dashboards with interactive assumptions (sliders/buttons), build an interactive panel on its own tab driving formula cells on a data tab.
For complete edit ops, formula functions, charts, and interactive panel specs, read artifact-types/sheets/SKILL.md and artifact-types/sheets/reference/.