create_notebook
Create a new .ipynb notebook file at a specified path, optionally with initial code, markdown, or raw cells. Avoids overwriting existing files and requires parent directory to exist.
Instructions
Create a NEW empty .ipynb notebook at path (optionally with initial cells).
Use this instead of hand-writing notebook JSON. cells (optional) is a list
of {cell_type, source, summary?} — the same shape as insert_cells — seeded in
order; omit it for an empty notebook. Refuses to overwrite an existing file
and requires the parent directory to exist (both error). The notebook is
nbformat 4.5, so every created cell gets a stable id right away. Returns
{"path", "num_cells", "ids"}. cell_type must be one of: code, markdown, raw.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| cells | No |