notebook_edit_cell_metadata
Merge a JSON object into a Jupyter notebook cell's metadata to add or remove pipeline stage tags like 'preprocess'.
Instructions
Merge a JSON object into a cell's metadata.
Useful for adding or removing pipeline stage tags: updates = '{"tags": ["preprocess"]}'
Args: notebook_path: Path to the .ipynb file, relative to the workspace root. cell_index: Zero-based index of the target cell. updates: JSON string with metadata keys to merge in. checkpoint: Write a backup before editing (default: true).
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": {
"notebook_path": "<notebook_path>",
"cell_index": "<cell_index>",
"updates": "<updates>"
},
"name": "notebook_edit_cell_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| updates | Yes | ||
| cell_index | Yes | ||
| checkpoint | No | ||
| notebook_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |