ipynb_extract_cells
Extract matching cells from multiple Jupyter notebooks into a new notebook using regex pattern and cell type filters, enabling targeted reuse of notebook content.
Instructions
Extract matching cells from multiple Jupyter Notebooks (.ipynb) into a new notebook.
Args: output_ipynb_filepath: Path for output notebook (absolute path preferred) input_ipynb_filepaths: List of source notebook paths (absolute paths preferred) pattern: Optional regex pattern to match cell_type: Optional cell type filter
Returns: Dict with 'success', 'cells_extracted', 'source_notebooks' or 'error' key
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": {
"output_ipynb_filepath": "<output_ipynb_filepath>",
"input_ipynb_filepaths": "<input_ipynb_filepaths>"
},
"name": "ipynb_extract_cells"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | No | ||
| cell_type | No | ||
| input_ipynb_filepaths | Yes | ||
| output_ipynb_filepath | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||