edit_cell
Modify code in existing JupyterLab cells and re-execute them to update outputs within remote HPC sessions.
Instructions
Edit an existing cell, re-execute it, and update outputs.
Args: session_id: Session identifier. cell_index: Cell index (supports negative indexing). code: New code for the cell.
Returns: Formatted output string.
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": {
"session_id": "<session_id>",
"cell_index": "<cell_index>",
"code": "<code>"
},
"name": "edit_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| cell_index | Yes | ||
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |