ipynb_search_replace_all
Find and replace regex patterns across all cells in a Jupyter Notebook, with optional filtering by cell type.
Instructions
Search and replace across all cells in a Jupyter Notebook (.ipynb).
Args: ipynb_filepath: Path to Jupyter Notebook (.ipynb) file (absolute path preferred) pattern: Pattern to search for (regex) replacement: Replacement string cell_type: Optional filter by cell type
Returns: Dict with 'success' and 'replacements_made' 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>",
"pattern": "<pattern>",
"replacement": "<replacement>"
},
"name": "ipynb_search_replace_all"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| cell_type | No | ||
| replacement | Yes | ||
| ipynb_filepath | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||