NotebookEdit tool description
SDK-CLI Agent SDK, print mode, v2.1.281. The text the model is given for this tool, line by line, with each line marked against the previous capture taken the same way. One model string produces this prompt.
As described in the subagent prompt: general-purpose request, not the ordinary one.
Lines7619 characters
Moved+0−0 against v2.1.280
Sent to1model strings get this description
Copies1distinct descriptions under this name
Parameters52 of them required
Every tool→every description on this arm
Plain text · sha256 88008ce01b87
The description, line by line
7 lines Line numbers are v2.1.280 on the left and this capture on the right.
1
1
Replaces, inserts, or deletes a single cell in a Jupyter notebook (.ipynb file).
2
2
3
3
Usage:
4
4
- You must use the Read tool on the notebook in this conversation before editing — this tool will fail otherwise.
5
5
- `notebook_path` must be an absolute path.
6
6
- `cell_id` is the `id` attribute shown in the Read tool's `<cell id="...">` output. It is required for `replace` and `delete`.
7
7
- `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.
What it accepts
5 parameters The JSON parameter schema sent beside this description, 1,094 characters of it. Name, type, then whether the client marked it required.cell_id
string
optional
The ID of the cell to edit. When inserting a new cell, the new cell will be inserted after the cell with this ID, or at the beginning if not specified.
cell_type
code | markdown
optional
The type of the cell (code or markdown). If not specified, it defaults to the current cell type. If using edit_mode=insert, this is required.
edit_mode
replace | insert | delete
optional
The type of edit to make (replace, insert, delete). Defaults to replace.
new_source
string
required
The new source for the cell
notebook_path
string
required
The absolute path to the Jupyter notebook file to edit (must be absolute, not relative)
sha256 0b3e9c6b4531 · the schema as the client sent it:
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"cell_id": {
"description": "The ID of the cell to edit. When inserting a new cell, the new cell will be inserted after the cell with this ID, or at the beginning if not specified.",
"type": "string"
},
"cell_type": {
"description": "The type of the cell (code or markdown). If not specified, it defaults to the current cell type. If using edit_mode=insert, this is required.",
"enum": [
"code",
"markdown"
],
"type": "string"
},
"edit_mode": {
"description": "The type of edit to make (replace, insert, delete). Defaults to replace.",
"enum": [
"replace",
"insert",
"delete"
],
"type": "string"
},
"new_source": {
"description": "The new source for the cell",
"type": "string"
},
"notebook_path": {
"description": "The absolute path to the Jupyter notebook file to edit (must be absolute, not relative)",
"type": "string"
}
},
"required": [
"notebook_path",
"new_source"
],
"type": "object"
}