> ## Documentation Index
> Fetch the complete documentation index at: https://ai.easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# EditToolInput

> Represents the input parameters for the Edit tool. The Edit tool performs exact string replacements in files.

## Definition

**Assembly:** CloudNimble.ClaudeEssentials.dll

**Namespace:** CloudNimble.ClaudeEssentials.Hooks.Tools.Inputs

**Inheritance:** System.Object

## Syntax

```csharp theme={null}
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](https://ai.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/Inputs/EditToolInput.md#oldstring) is not unique in the file,
unless [EditToolInput.ReplaceAll](https://ai.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/Inputs/EditToolInput.md#replaceall) is set to `true`.

## Constructors

### &#x20;.ctor

#### Syntax

```csharp theme={null}
public EditToolInput()
```

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public Object()
```

## Properties

### &#x20;FilePath

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

#### Syntax

```csharp theme={null}
public string FilePath { get; set; }
```

#### Property Value

Type: `string`

### &#x20;NewString

Gets or sets the text to replace it with.

#### Syntax

```csharp theme={null}
public string NewString { get; set; }
```

#### Property Value

Type: `string`

#### Remarks

Must be different from [EditToolInput.OldString](https://ai.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/Inputs/EditToolInput.md#oldstring).

### &#x20;OldString

Gets or sets the exact text to replace.

#### Syntax

```csharp theme={null}
public string OldString { get; set; }
```

#### Property Value

Type: `string`

### &#x20;ReplaceAll

Gets or sets whether to replace all occurrences of [EditToolInput.OldString](https://ai.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/Inputs/EditToolInput.md#oldstring).

#### Syntax

```csharp theme={null}
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

### &#x20;Equals Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public virtual bool Equals(object obj)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `obj` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;Equals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;GetHashCode Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### &#x20;GetType Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### &#x20;MemberwiseClone Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### &#x20;ReferenceEquals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;ToString Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public virtual string ToString()
```

#### Returns

Type: `string?`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.