duplicate_notebook
Copy a notebook tab to create a backup or variant with all cells, layout, and run history, operating in the background without switching tabs.
Instructions
Duplicate a notebook tab. Copies every cell (SQL, mode, chart config), layout, and run history into a NEW notebook labelled " (copy)" placed right after the original; cell ids are regenerated. Matching saved result snapshots are copied best-effort in the background and hydrate when the copy is opened. last_run_status is preserved as history and does not guarantee that a saved result snapshot exists. The copy is ALWAYS made in the background — you never switch the user's active tab. The user sees a notification and opens it themselves; only call activate_notebook if they explicitly ask to be taken there.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buffer_id | Yes | Source notebook buffer id (from <notebook_context> prefix). |