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.
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": {
"buffer_id": "<buffer_id>"
},
"name": "duplicate_notebook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buffer_id | Yes | Source notebook buffer id (from <notebook_context> prefix). |