ipynb_reorder_cells
Reorder cells in a Jupyter Notebook (.ipynb) by providing a new index mapping that specifies the desired order.
Instructions
Reorder cells in a Jupyter Notebook (.ipynb) by providing new index mapping.
Args: ipynb_filepath: Path to Jupyter Notebook (.ipynb) file (absolute path preferred) new_order: List of indices in desired order (0-based indexing)
Returns: Dict with 'success' 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>",
"new_order": "<new_order>"
},
"name": "ipynb_reorder_cells"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_order | Yes | ||
| ipynb_filepath | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||