Restyle the imported workbook in place
restyle_workbookRewrites workbook formatting only—applying house, plain, or template styles to detected blocks while preserving values, formulas, charts, and validation without rebuilding.
Instructions
Fast path for an imported workbook: rewrite formats only (fonts, colours, borders, alignment, number formats where a cell has none, column widths, gridlines, title merges) on every block the scanner detected in the original file, in the chosen style. Values, formulas, charts, data validation and conditional formats are untouched; cells outside detected blocks keep their formatting; a Read Me cover sheet is left as is. Writes a new file in the project's output folder, never over the original. Use when the user wants the file to follow the house (or plain, or template) format without rebuilding it.
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": {
"project": "<project>"
},
"name": "restyle_workbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | An imported project id (from import_workbook) | |
| fileName | No | File name without extension. Default: <original name> restyled | |
| formatting | No | Default: the project's formatting | |
| templatePath | No | template mode: the .xlsx whose fonts to reuse |