files_write
Writes a rectangular block of LITERAL cell values into a Tabulya spreadsheet file, anchored at the given top-left cell. Preferred over files_add_table for tabular data (data tables are opt-in); when writing tabular data with a header row, use files_write_batch instead so the header gets styled (bold + fill_color) in the same atomic operation. Requires edit permission. Values are written as-is (formulas starting with '=' are rejected; so are writes overlapping or adjacent to data tables, except writes within the data rows of a server table: those go to the tables service — one table per call, values matching the column types). The write is applied through the collaboration server (visible to live editors and persisted). Signature: files_write(file_uuid, cell, values[][], sheet?).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_uuid": "<file_uuid>",
"cell": "<cell>",
"values": "<values>"
},
"name": "files_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell | Yes | Top-left anchor cell in A1 notation, e.g. 'B2'. | |
| sheet | No | Sheet name (defaults to the first sheet). | |
| values | Yes | 2D array of values (rows of columns) starting at the anchor. | |
| file_uuid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell | Yes | ||
| file_uuid | Yes | ||
| cols_written | Yes | ||
| rows_written | Yes | ||
| sequence_number | Yes |