clear_cell_output
Remove the output and execution count from a specific code cell in a Jupyter notebook while keeping the cell itself.
Instructions
Clear the outputs and execution count of a single code cell in the currently activated notebook, without deleting the cell itself.
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": {
"cell_index": "<cell_index>"
},
"name": "clear_cell_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell_index | Yes | Index of the code cell to clear (0-based) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Success message with the number of outputs removed |