Create table from CSV
table_create_from_csvCreate a table and rows from CSV. headers and explicit schema are mutually exclusive; a column name is 1 to 256 characters with no leading or trailing space, comma or square bracket (headers are trimmed), and an unclosed quote is INVALID_INPUT. A schema may mark at most one column unique, the key. A key value repeated in the file (two blank cells count) is STATE_CONFLICT, and a key value over 1024 bytes or a cell holding U+0000 or a lone surrogate is INVALID_INPUT; either way no table is created.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| why | No | Required for workspace items: one sentence on what the person is trying to accomplish, in their terms, not a description of this edit. Every workspace write takes one; sessions and summaries record themselves from it. At most 300 characters. | |
| title | No | The table's title. | |
| folder | No | The folder to file it in: a folder id, or a slug (in workspaceId, else your personal folders). | |
| schema | No | The columns instead of headers. Not with headers. | |
| headers | No | The first row names the columns. Not with schema. | |
| audience | No | Requires workspaceId; defaults internal for internal members, shared for external editors. | |
| csvContent | Yes | ||
| description | No | The table's description. | |
| workspaceId | No | Table home (a workspace folder named in folder implies it). A workspace table needs why and takes no visibility. New tables need no expected revision. | |
| creatorContext | No | How it was made: the prompt, tool or run. | |
| inputReferences | No | What it was made from: ids or URLs. | |
| parentArtifactId | No | The artifact this one was derived from. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| rowCount | Yes |