{"ok":true,"result":{"slug":"find-and-replace","name":"Find and Replace","summary":"Find and replace in text, as plain text or a JavaScript regular expression, with case sensitivity and whole-word options. Returns the result and match counts.","description":"Find and replace words or phrases in any text, with case-sensitive, whole-word and regular-expression options. Shows how many matches were replaced.","method":"POST","endpoint":"/api/v1/tools/find-and-replace","plan":"free","mcpName":"find_and_replace","input":{"type":"object","additionalProperties":false,"properties":{"input":{"type":"string","description":"The text to search.","maxLength":100000},"find":{"type":"string","description":"Text or regular expression (without slashes) to search for.","maxLength":500},"replace":{"type":"string","description":"Replacement. In regex mode $1, $<name> and $& refer to groups; in plain mode it is inserted literally.","default":"","maxLength":10000},"regex":{"type":"boolean","description":"Treat find as a JavaScript regular expression. Runs with a 1 second time limit, so patterns that backtrack heavily, such as (a+)+b, fail with an error.","default":false},"caseSensitive":{"type":"boolean","description":"Match case exactly.","default":false},"wholeWord":{"type":"boolean","description":"Only match where the search is not part of a longer word.","default":false},"replaceAll":{"type":"boolean","description":"Replace every match; false replaces only the first.","default":true}},"required":["input","find"]},"example":{"input":"Colour, colour and more COLOUR.","find":"colour","replace":"color"},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/find-and-replace","page":"https://pithlab.com/tools/find-and-replace"}}