# Find and replace

Replace every occurrence of a word or phrase in text, exactly as typed, with a count of the changes.

- Endpoint: `POST https://setget.net/v1/tools/find-replace` with JSON `{"input": {...}}`
- MCP: `run_tool` with `slug` = `find-replace`
- Page: https://setget.net/tools/find-replace

## Inputs

- `text` (required, string): The text to change.
- `find` (required, string): The exact text to look for. No special characters.
- `replace` (optional, string, default `""`): The text to put in its place. Leave empty to delete.
- `case_sensitive` (optional, boolean, default `true`): Treat upper and lower case as different.
- `whole_word` (optional, boolean, default `false`): Only match when the text is not part of a longer word.

## Example 1

```json
{"input":{"text":"Cat, concat, cat.","find":"cat","replace":"dog","case_sensitive":false,"whole_word":true}}
```

Result:

```json
{"text":"dog, concat, dog.","count":2}
```

## Example 2: Special characters are plain text

```json
{"input":{"text":"price: $5.00 (was $7.00)","find":"$","replace":"USD "}}
```

Result:

```json
{"text":"price: USD 5.00 (was USD 7.00)","count":2}
```

**Can I use wildcards or patterns?** Not here. Every character is matched exactly as typed. Use the regex replace tool for patterns.
