read_notebook
Extract notebook cell details with index, source, and execution count. Choose brief format for structure overview or detailed format for full cell analysis.
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
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of items to return (0 means no limit) | |
| start_index | No | Starting index for pagination (0-based) | |
| 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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Notebook content in the requested format |