Skip to content

Json Escaper MCP tool

MCP findutils:json_escaper

Returns the text with JSON string escapes applied (mode "escape") or removed (mode "unescape"). Escapes backslashes, double quotes, newlines, carriage returns, tabs, form feeds and backspaces so the text can sit inside a JSON string literal.

Arguments

application/json
  • text

    string required

    The text to escape or unescape.

  • mode

    string optional

    Direction: "escape" (default) adds JSON escapes; "unescape" removes them. One of escape · unescape. Default "escape".

Example arguments

Verified
{
  "text": "He said \"hi\"\nbye",
  "mode": "escape"
}