add_cell
Add a cell to a Jupyter notebook at a specific position, with options to place it after an existing cell, at an index, or at the end. Optionally execute stale cells in one call.
Instructions
Add a cell. name must be unique kebab-case. Placement: after (an
existing cell name; '' prepends), index, or omit both to append.
run="stale" immediately executes every stale cell (the add→run loop in
one call) and returns the execution results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | No | none | |
| name | Yes | ||
| path | Yes | ||
| after | No | ||
| index | No | ||
| source | Yes | ||
| cell_type | No | code |