Edit Cell
edit_cellModify an existing cell's source code with a staleness check to prevent overwriting concurrent edits, requiring a prior read baseline.
Instructions
Edit an existing cell's source code.
Includes a staleness guard: unless check_fresh=False, refuses to edit
a cell that has no full-source read baseline (needs_read) or whose
source changed since that read (conflict). get_cell_data records
the baseline; a get_cell_map preview does not. This prevents silently
overwriting a concurrent edit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional new cell name. | |
| source | Yes | New source code. | |
| cell_id | Yes | Target cell id. | |
| hide_code | No | Optional new hide_code value. | |
| server_url | No | Server URL override. | |
| session_id | No | Session ID; omit only when the active-session binding holds for this call (see `list_active_notebooks`). | |
| check_fresh | No | Refuse to edit a cell that changed since last read. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||