Skip to main content

Definition

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

Syntax

CloudNimble.ClaudeEssentials.Hooks.Tools.Inputs.EditToolInput

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

public EditToolInput()

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

FilePath

Gets or sets the absolute path to the file to modify.

Syntax

public string FilePath { get; set; }

Property Value

Type: string

NewString

Gets or sets the text to replace it with.

Syntax

public string NewString { get; set; }

Property Value

Type: string

Remarks

Must be different from EditToolInput.OldString.

OldString

Gets or sets the exact text to replace.

Syntax

public string OldString { get; set; }

Property Value

Type: string

ReplaceAll

Gets or sets whether to replace all occurrences of EditToolInput.OldString.

Syntax

public System.Nullable<bool> ReplaceAll { get; set; }

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

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?