notebook_edit_metadata
Update Jupyter notebook metadata by merging a JSON object into its top-level metadata keys. Optionally backup the file before editing.
Instructions
Merge a JSON object into the top-level notebook metadata.
Args: notebook_path: Path to the .ipynb file, relative to the workspace root. updates: JSON string with top-level 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>",
"updates": "<updates>"
},
"name": "notebook_edit_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| updates | Yes | ||
| checkpoint | No | ||
| notebook_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |