update_notebook_cell
Update a specific cell in a notebook by providing the workspace, notebook ID, cell index, and new content. Choose code or markdown to replace the existing cell with the desired change.
Instructions
Update a specific cell in a notebook.
Args:
workspace: Name or ID of the workspace
notebook_id: ID or name of the notebook
cell_index: Index of the cell to update (0-based)
cell_content: New content for the cell
cell_type: Type of cell ('code' or 'markdown')
ctx: Context object containing client information
Returns:
A string confirming the update or an error message.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace": "<workspace>",
"notebook_id": "<notebook_id>",
"cell_index": "<cell_index>",
"cell_content": "<cell_content>"
},
"name": "update_notebook_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell_type | No | code | |
| workspace | Yes | ||
| cell_index | Yes | ||
| notebook_id | Yes | ||
| cell_content | Yes |