Docs

Import

Bring work in without pretending Excel is Metagrid.

Any file → selected cell

File → Import (or Insert → Image / file…) opens a picker for any file type. Import always targets the selected cell (except full Metagrid JSON documents — see below). It never wipes your workbook unless you import a full metagrid-v2 document.

JSON

File → Import of a metagrid-v2 document replaces the current workbook (full document swap).

Other JSON (and Paste with Ctrl+V) maps objects/arrays into structures at the selection. Comments (//, /* … */), trailing commas, and … placeholders are allowed — the nested object/array shape is what becomes lists, tables, and grids:

// Paste this into a cell → list of lists
{
  "team": ["Ada", "Grace"],
  "budget": { "q1": 10, "q2": 12 }
}

Excel (.xlsx / .xls) and CSV

Spreadsheet import inserts into the selected cell. A single-sheet file unwraps: the cell is that sheet’s structure, named after the file, so the path is Filename.path rather than Filename.Sheet.path. Several sheets still become a Dictionary (indexes = sheet names).

Select a cell → Import → budget.xlsx (one sheet)
  → cell named Budget → Grid or Table

Select a cell → Import → workbook.xlsx (several sheets)
  → List {
       Sheet1 → Grid or Table,
       Sheet2 → Grid or Table,
       …
     }

From API

Queries → From API… GETs a URL into the selected cell and (by default) saves the URL plus credentials as a workbook query. Queries never refresh on their own — use Queries → Refresh / Refresh all / Manage. Auth styles:

JSON objects and arrays become lists, tables, or grids. Common wrappers (data, results, items, value, JSON:API attributes) are unwrapped. CSV/TSV becomes a grid. If the browser is blocked by CORS (typical for authenticated APIs), the request is retried through the site’s import proxy.

The target cell shows a #n badge (the row in Queries ▸ Manage). Click it to open that query. Manage also lists the cell path and a Go to cell button. Nested results keep a Query segment at the end of the path.