Tabular operations read the content of a Canvas node and produce previews, extracted tables, and Schema literals.
A preview is returned as one of four kinds, identified by the kind field. If the node's pinned content hash does not match the stored content, the preview fails with Artifact pin is stale.
| Shown when | Fields |
|---|---|---|
| The node holds a raw workbook file |
|
| Media type |
|
| Media type |
|
| Any other media type |
|
A table preview returns at most 50 rows. rowCount reports the full row count.
Reads the workbook on the source node, extracts the named sheet, and saves a new Canvas version.
Input | Required | Description |
|---|---|---|
Source node | Yes | The workbook node to extract from |
| Yes | Name of the sheet to extract |
| No | A1-style range such as |
Errors:
Condition | Message |
|---|---|
Source node is not in the Canvas |
|
Source node is not backed by workbook content |
|
Canvas changed in another session | Conflict. Reload the Canvas and reapply the change |
On success the snapshot gains two nodes and two edges:
Node | Type | Contents |
|---|---|---|
|
|
|
|
| The stored table artifact, plus the source node's |
Edges: source node → step, step → table.
The table artifact is stored with media type application/vnd.ligantic.table+json. Its name is <sheetName> (<range>).
The three affected nodes are auto-laid-out around the source node. The version summary is Extracted table from <sheetName>.
Reads the table on the source node and saves a version with a schema:literal node wired to it.
Parameter | Required | Description |
|---|---|---|
| Optional | Schema name. Defaults to |
| Optional |
|
Errors:
Condition | Message |
|---|---|
Source node is not in the Canvas |
|
Source node is not backed by a table |
|
Every column is excluded |
|
Field keys are derived from the column name or header: lowercased, non-alphanumeric runs collapsed to _, leading and trailing _ trimmed, a leading digit prefixed with column_, and duplicates suffixed with _2, _3, and so on. An empty result falls back to column_<index+1>.
Every derived field has type string. The Schema's display name template is {<first field key>}.
The definition artifact uses media type application/vnd.ligantic.schema-definition+json. The new node is schema:literal with label set to the Schema name and an edge labelled derive from the table node. The version summary is Derived schema <schemaName>.
Table extraction and Schema derivation accept their output automatically in the same save. No human review step is involved. See Canvas Review and Provenance.