files_add_table
Creates a structured data table from a 2D array of values in one call (named, with headers). Data tables are discouraged by default — only use this when the user explicitly requests a data table or the file already uses data tables; otherwise write plain cells with files_write (or files_write_batch) and style the header row. cell: the table's top-left anchor. table_name: the table's name. values: a 2D array of strings (first row is the column headers when first_row_is_header is true, the default). Don't place over existing data (check with files_has_data). For plain non-table cells use files_write; to turn existing cells into a table use files_convert_to_table. Requires edit permission. Signature: files_add_table(file_uuid, cell, table_name, values, sheet?, first_row_is_header?).
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>",
"table_name": "<table_name>",
"values": "<values>"
},
"name": "files_add_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell | Yes | Top-left anchor in A1, e.g. 'A1'. | |
| sheet | No | Sheet name (defaults to the first sheet). | |
| values | Yes | 2D array of values; first row = headers when first_row_is_header. | |
| file_uuid | Yes | ||
| table_name | Yes | Name for the table. | |
| first_row_is_header | No | Treat the first row as column headers (default true). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell | Yes | ||
| file_uuid | Yes | ||
| sequence_number | Yes |