Definition
Assembly: CloudNimble.ClaudeEssentials.dll Namespace: CloudNimble.ClaudeEssentials.Hooks.Tools.Inputs Inheritance: System.ObjectSyntax
Summary
Represents the input parameters for the Edit tool. The Edit tool performs exact string replacements in files.Remarks
The edit will fail if EditToolInput.OldString is not unique in the file, unless EditToolInput.ReplaceAll is set totrue.
Constructors
.ctor
Syntax
.ctor Inherited
Inherited from
objectSyntax
Properties
FilePath
Gets or sets the absolute path to the file to modify.Syntax
Property Value
Type:string
NewString
Gets or sets the text to replace it with.Syntax
Property Value
Type:string
Remarks
Must be different from EditToolInput.OldString.OldString
Gets or sets the exact text to replace.Syntax
Property Value
Type:string
ReplaceAll
Gets or sets whether to replace all occurrences of EditToolInput.OldString.Syntax
Property Value
Type:System.Nullable<bool>
Remarks
Default isfalse. Set to true to replace all occurrences,
useful for renaming variables across a file.
Methods
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
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
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?