Definition
Assembly: CloudNimble.ClaudeEssentials.dll Namespace: CloudNimble.ClaudeEssentials.Hooks.Tools.Responses Inheritance: System.ObjectSyntax
Summary
Represents the response payload returned by the Claude Code NotebookEdit tool after modifying a Jupyter notebook cell.Remarks
The NotebookEdit tool modifies Jupyter notebook (.ipynb) files by replacing, inserting, or deleting cells. Jupyter notebooks are interactive documents that combine code, text, and visualizations, commonly used for data analysis and scientific computing. This response is received in the NotebookEditPostToolUsePayload when thetool_name is “NotebookEdit”.
Supported edit operations:
replace- Replaces the content of an existing cellinsert- Adds a new cell at a specified positiondelete- Removes a cell from the notebook
Constructors
.ctor
Syntax
.ctor Inherited
Inherited from
objectSyntax
Properties
CellId
Gets or sets the identifier of the cell that was edited, inserted, or deleted.Syntax
Property Value
Type:string?
Remarks
Cell IDs are unique identifiers within a notebook that persist across edits. For insert operations, this is the ID of the newly created cell. For delete operations, this is the ID of the cell that was removed. May benull if the operation did not involve a specific cell or if
the cell was identified by index rather than ID.
CellType
Gets or sets the type of the cell.Syntax
Property Value
Type:CloudNimble.ClaudeEssentials.Hooks.NotebookCellType
Remarks
See NotebookCellType for possible values.EditMode
Gets or sets the type of edit operation that was performed.Syntax
Property Value
Type:CloudNimble.ClaudeEssentials.Hooks.NotebookEditMode
Remarks
See NotebookEditMode for possible values. This should match the NotebookEditToolInput.EditMode that was specified in the input, defaulting to NotebookEditMode.Replace if not specified.Error
Gets or sets the error message if the operation failed.Syntax
Property Value
Type:string?
Language
Gets or sets the programming language of the notebook.Syntax
Property Value
Type:string
NewSource
Gets or sets the new source code that was written to the cell.Syntax
Property Value
Type:string
NotebookPath
Gets or sets the absolute path to the Jupyter notebook that was edited.Syntax
Property Value
Type:string
Examples
Remarks
This is always an absolute path, regardless of whether the original request used a relative or absolute path. The file extension will be.ipynb.
OldSource
Gets or sets the previous cell source. Applies to replace and delete operations only.Syntax
Property Value
Type:string?
OriginalFile
Gets or sets the original notebook content before modification.Syntax
Property Value
Type:string
UpdatedFile
Gets or sets the updated notebook content after modification.Syntax
Property Value
Type:string
Methods
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?