Sanitize copy
sanitize_copyCreate a cleaned copy of an Excel workbook for sharing by stripping comments, document properties, change logs, hidden sheets, external links, or macros while keeping the source unchanged.
Instructions
Write a cleaned copy of the workbook for sharing (run inspect_for_sharing first). The source is not modified.
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": {
"output_path": "<output_path>"
},
"name": "sanitize_copy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File path or preloaded name (list_configured_files). Omit if only one file is preloaded. | |
| remove | No | What to strip. Default: comments, document_properties, change_log. Hidden sheets are removed only when nothing refers to them; external links become their cached values. | |
| overwrite | No | Replace an existing output file. | |
| output_path | Yes | Path for the cleaned copy; must differ from the source. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||