Plain text · sha256 88008ce01b87
The description, rendered
This renders the markdown inside the description, so it isn’t quite the description itself.The raw view and the plain text are the bytes as they were sent.
Replaces, inserts, or deletes a single cell in a Jupyter notebook (.ipynb file).
Usage:
- You must use the Read tool on the notebook in this conversation before editing — this tool will fail otherwise.
notebook_pathmust be an absolute path.cell_idis theidattribute shown in the Read tool's<cell id="...">output. It is required forreplaceanddelete.edit_modedefaults toreplace. Useinsertto add a new cell after the cell with the givencell_id(or at the beginning of the notebook ifcell_idis omitted) —cell_typeis required when inserting. Usedeleteto 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"
}