Numbers: edit cell
numbers_edit_cellSet one cell value in a .numbers file with backup, verification, and atomic write. Use dry_run=true to preview the change on a copy without touching the file.
Instructions
Set one cell (e.g. ref "B2") in a .numbers file. Backed up, verified, atomic; every other cell is checked unchanged. dry_run=true previews the change on a copy without touching the file. Use to set one value. For a formula use numbers_set_formula; to add whole rows use numbers_insert with values; for how a number displays use numbers_set_number_format.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | One cell in A1 notation, e.g. "B2". | |
| 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. | |
| value | Yes | New value: a number stays a number, text stays text exactly (Arabic too); null clears. For a formula use numbers_set_formula. | |
| 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 | |||