read_notebook
Read Jupyter notebook cells to analyze structure, view content, and identify cells for operations like deletion or insertion using brief or detailed formats.
Instructions
Read a notebook and return index, source content, type, execution count of each cell.
Using brief format to get a quick overview of the notebook structure and it's useful for locating specific cells for operations like delete or insert.
Using detailed format to get detailed information of the notebook and it's useful for debugging and analysis.
It is recommended to use brief format with larger limit to get a overview of the notebook structure,
then use detailed format with exact index and limit to get the detailed information of some specific cells.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notebook_name | Yes | Notebook identifier to read | |
| response_format | No | Response format: 'brief' will return first line and lines number, 'detailed' will return full cell source | brief |
| start_index | No | Starting index for pagination (0-based) | |
| limit | No | Maximum number of items to return (0 means no limit) |