Numbers: add table
numbers_add_tableAdd a new table with data to an existing or new sheet in a Numbers file, verifying existing tables stay unchanged. Use dry_run to preview changes on a copy before editing.
Instructions
Add a table with data to an existing sheet (sheet, default the first) or to a new sheet (new_sheet). Every existing table is verified unchanged. dry_run=true previews the change on a copy without touching the file. Use for a new, separate table on a sheet or a new sheet. To grow an existing table use numbers_insert.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the .numbers file (absolute, or starting with ~). | |
| rows | Yes | The data, header first: [["Region", "Revenue"], ["Riyadh", 1200]]. | |
| sheet | No | Existing sheet to add it to; omit for the first sheet. | |
| dry_run | No | true = make the change on a throwaway copy, run every check, and return what would change; the file itself is not touched. Use it before broad or risky edits and show the user. | |
| new_sheet | No | Name of a new sheet to create for the table instead. | |
| table_name | Yes | Name of the new table (must not exist on that sheet). | |
| header_rows | No | How many rows at the top are headers (styled and kept on top). | |
| header_columns | No | How many columns on the left are headers. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||