files_convert_to_table
Converts a rectangular range of cells into a structured data table (like an Excel Table): named, with column headers, sortable. Only use when the user explicitly requests a data table or the file already uses data tables; otherwise keep the data as plain cells. range must be a single rectangle (e.g. 'A1:D20') and must NOT overlap an existing table or code-cell output. first_row_is_header (default true): use the first row as the column names; false generates 'Column 1', 'Column 2', … and keeps all rows as data. table_name: optional (auto-generated if omitted). Requires edit permission. Signature: files_convert_to_table(file_uuid, range, table_name?, first_row_is_header?, 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>",
"range": "<range>"
},
"name": "files_convert_to_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | A1 rectangle to convert, e.g. 'A1:D20'. | |
| sheet | No | Sheet name (defaults to the first sheet). | |
| file_uuid | Yes | ||
| table_name | No | Name for the table (auto-generated if omitted). | |
| first_row_is_header | No | Use the first row as column names (default true). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | ||
| file_uuid | Yes | ||
| sequence_number | Yes |