ipynb_split_notebook
Split a Jupyter notebook into multiple files based on markdown headers or cell count to organize code.
Instructions
Split a Jupyter Notebook (.ipynb) into multiple files by criteria.
Args: ipynb_filepath: Path to Jupyter Notebook (.ipynb) file (absolute path preferred) output_dir: Directory for output files split_by: Split criteria ('markdown_headers' or 'cell_count')
Returns: Dict with 'success' and 'files_created' 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": {
"ipynb_filepath": "<ipynb_filepath>",
"output_dir": "<output_dir>"
},
"name": "ipynb_split_notebook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| split_by | No | markdown_headers | |
| output_dir | Yes | ||
| ipynb_filepath | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||