get_cells
Retrieve all cells with their IDs, code, and runtime state from a marimo notebook specified by file path or port number.
Instructions
Get all cells with their IDs, code, and runtime state.
Args: notebook: Path to the notebook file or port number (e.g. "analysis.py" or "2718").
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": {
"notebook": "<notebook>"
},
"name": "get_cells"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notebook | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |