patch_cell
Replace a unique substring in a notebook cell. Ensures the old text appears exactly once, keeps diffs small, and clears code cell outputs.
Instructions
Preferred edit tool: replace a unique old substring with new in a cell.
old must occur exactly once in the cell; otherwise this errors and asks for
more context. Keeps diffs small. Editing a code cell clears its outputs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new | Yes | ||
| old | Yes | ||
| path | Yes | ||
| index | Yes |