Create Cell
create_cellAdd a new cell to a marimo notebook, optionally placing it before or after another cell and hiding its code for setup tasks.
Instructions
Create a new cell in the notebook.
Created cells are visible in the UI by default (hide_code=False); pass hide_code=True explicitly for setup/implementation cells you want hidden.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional cell name. | |
| after | No | Optional cell_id to place this cell after. | |
| before | No | Optional cell_id to place this cell before. | |
| source | Yes | Source code for the new cell. | |
| hide_code | No | Whether the code is hidden in the UI (default False). | |
| 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`). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||