Numbers: set headers
numbers_set_headersSet how many header rows and columns (0–5) an Apple Numbers table has to freeze title rows for sorting and styling. Preview the change on a copy with dry_run.
Instructions
Set how many header rows / header columns a table has (0–5). dry_run=true previews the change on a copy without touching the file. Use when the user wants a different number of header rows or columns, e.g. to freeze a title row on top for sorting and styling. Not for sizes (numbers_set_dimensions) or header colours (numbers_set_cell_style or numbers_apply_design).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the .numbers file (absolute, or starting with ~). | |
| sheet | No | Sheet name. Omit when the file has one sheet (iwork_read lists sheets and tables). | |
| table | No | Table name on that sheet. Omit when the sheet has one table. | |
| 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. | |
| header_rows | No | Number of header rows (0 for none). | |
| header_columns | No | Number of header columns (0 for none). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||