xlsx_healer_cure
Repairs a diagnosed .xlsx workbook by applying one targeted operation, such as fixing broken external references or flagging unsupported Google Sheets formulas.
Instructions
Use this when you need to apply one specific repair to a diagnosed workbook. For broken external references: rewrite ref paths, freeze / redirect / localize a deleted source, strip embedded credentials, or collapse multi-hop chains. For Google-Sheets-to-Excel export damage: flag each dead Sheets-only formula with an in-cell note so the loss is visible (it does NOT recompute the function — a Sheets-only function has no Excel equivalent to compute), trim an oversized used-range, and compact repeated formulas into Excel shared-formula form.
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_path": "<file_path>",
"operation": "<operation>"
},
"name": "xlsx_healer_cure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | as_copy (default) writes a new file alongside the source; in_place overwrites it. | |
| confirm | No | Required as true when mode=in_place. Prevents accidental in-place overwrites; explicit confirmation is the safety gate. | |
| out_path | No | Optional: write the cured workbook to this absolute path. Defaults to <name>-healed.xlsx next to the source when mode=as_copy. | |
| file_path | Yes | Absolute path to the .xlsx file to cure. | |
| operation | Yes | The cure operation to apply. | |
| cure_params | No | Operation-specific parameters. E.g., rename_move takes {from_prefix, to_prefix}; pattern_bulk takes {pattern, replacement}. |