Numbers: set dimensions
numbers_set_dimensionsSet column widths and row heights in Apple Numbers spreadsheets by point values, with dry_run preview before applying changes.
Instructions
Set column widths and/or row heights in points, e.g. columns={"A": 160, "C": 90}, rows={"1": 32} (rows are 1-based). Nothing else changes. dry_run=true previews the change on a copy without touching the file. Use for column widths and row heights. To change which rows count as headers use numbers_set_headers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the .numbers file (absolute, or starting with ~). | |
| rows | No | Row heights in points by 1-based row number, e.g. {"1": 32}. | |
| 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. | |
| columns | No | Column widths in points by letter, e.g. {"A": 160, "C": 90}. | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||