{"ok":true,"result":{"slug":"string-escaper","name":"String Escaper","summary":"Escape or unescape a string for JSON, JavaScript, Java/C#, Python, regular expressions, CSV, SQL, POSIX shell or HTML attributes.","description":"Escape or unescape text for JSON, JavaScript, Java, C#, Python, regex, CSV, SQL, shell and HTML attributes, with clear errors for malformed escapes.","method":"POST","endpoint":"/api/v1/tools/string-escaper","plan":"free","mcpName":"string_escaper","input":{"type":"object","additionalProperties":false,"properties":{"input":{"type":"string","description":"The raw string to escape, or the escaped string to unescape.","maxLength":200000},"format":{"type":"string","description":"Target syntax.","enum":["json","javascript","java","python","regex","csv","sql","shell","html"],"maxLength":200000},"mode":{"type":"string","description":"escape or unescape.","default":"escape","enum":["escape","unescape"],"maxLength":200000},"quote":{"type":"boolean","description":"When escaping, wrap the result in the format's usual quotes (json, javascript, java, python, sql, html).","default":false},"asciiOnly":{"type":"boolean","description":"When escaping, write every non-ASCII character as \\uXXXX (json, javascript, java, python).","default":false}},"required":["input","format"]},"example":{"input":"She said \"hi\"\nthen left.","format":"json","quote":true},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/string-escaper","page":"https://pithlab.com/tools/string-escaper"}}