Documentation
¶
Overview ¶
Package notebookedittool implements the NotebookEdit tool — reads and edits Jupyter notebook (.ipynb) cell source code.
Mirrors src/tools/NotebookEditTool/NotebookEditTool.ts. Supports three edit modes: replace (default), insert (after cell_id), and delete.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input struct {
NotebookPath string `json:"notebook_path"`
CellID string `json:"cell_id"`
NewSource string `json:"new_source"`
CellType string `json:"cell_type"`
EditMode string `json:"edit_mode"`
}
Input is the typed view of the JSON input.
type Tool ¶
type Tool struct{}
Tool implements the NotebookEdit tool.
func (*Tool) Description ¶
func (*Tool) InputSchema ¶
func (*Tool) InputSchema() json.RawMessage
func (*Tool) IsConcurrencySafe ¶
func (*Tool) IsConcurrencySafe(json.RawMessage) bool
func (*Tool) IsReadOnly ¶
func (*Tool) IsReadOnly(json.RawMessage) bool
Click to show internal directories.
Click to hide internal directories.