Skip to main content

Definition

Assembly: CloudNimble.ClaudeEssentials.dll Namespace: CloudNimble.ClaudeEssentials.Hooks.Tools.Inputs Inheritance: System.Object

Syntax

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 to true.

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

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 is false. Set to true to replace all occurrences, useful for renaming variables across a file.

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?