flexsim_table_write
Write a rectangular block of values into a GlobalTable, creating it if missing. Optionally resize the table to match the block or enlarge it to fit.
Instructions
Write a rectangular block of values into a GlobalTable, creating it when needed.
Writes rows (list of lists, 1-100 rows x 1-20 cols, rectangular) into
Table("<table>") cells [1..R][1..C] with quoted literals. With clear=True
(default) the table is resized to exactly R x C first; with clear=False it is
only enlarged and the block lands at the top-left. Returns JSON
{table, rows, cols, table_rows, table_cols, created, cleared, backend}.
Creation (create_if_missing=True, default) tries, in order: Tools.create("GlobalTable")
(Toolbox factory: the only path verified end-to-end — create, setSize, cell R/W),
applicationcommand("addglobaltable"), and cloning the first existing table. It works
even when Tools/GlobalTables is empty or missing. Object.create("GlobalTable") is
never used: its nodes fail with `Invalid row number` (AGENTE_FLEXSIM.md sec 3c).
Args:
table: GlobalTable name (Tools/GlobalTables/<table>).
rows: rectangular values (numbers/strings/bool/null; null stored as 0).
create_if_missing: clone a donor table when missing (default True).
clear: resize to exactly the block size first (default True).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |