# Tool Description: NotebookEdit

> Tool description for editing Jupyter notebook cells by replacing, inserting, or deleting a cell using cell IDs from the read tool

- Skill: `lord1egypt/tool-description-notebookedit-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add lord1egypt/tool-description-notebookedit-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/lord1egypt/tool-description-notebookedit-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: BSD-3-Clause license
- Author: Lord1Egypt (https://skillmd.com/u/lord1egypt)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/lord1egypt/tool-description-notebookedit-2

---


Replaces, inserts, or deletes a single cell in a Jupyter notebook (.ipynb file).

Usage:
- You must use the ${READ_TOOL_NAME} tool on the notebook in this conversation before editing — this tool will fail otherwise.
- `notebook_path` must be an absolute path.
- `cell_id` is the `id` attribute shown in the ${READ_TOOL_NAME} tool's `<cell id="...">` output. It is required for `replace` and `delete`.
- `edit_mode` defaults to `replace`. Use `insert` to add a new cell after the cell with the given `cell_id` (or at the beginning of the notebook if `cell_id` is omitted) — `cell_type` is required when inserting. Use `delete` to remove the cell.
