copy_workbook
Copy an Excel workbook byte-for-byte to a new path, preserving charts, macros, and queries. Existing files stay untouched unless overwrite is enabled; a backup is created first for restore.
Instructions
Copy a workbook file byte-for-byte from src to dst, so nothing in the original is re-serialized or degraded (charts, shapes, macros, and queries all carry over intact). An existing dst is left untouched unless overwrite is true, in which case dst is FIRST rotated into its .ks4xl-backups prev slot and then replaced (restore source='prev' brings it back). Returns the destination path. Use this to branch a working copy before a risky batch of edits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dst | Yes | ||
| src | Yes | ||
| overwrite | No |