escape_string

Pack: unicode · Endpoint: https://gateway.pipeworx.io/unicode/mcp

Escape a string. format = “js” (\uXXXX), “html” (&#xNN;), “url” (percent-encoding), or “all-nonascii” (js-escape only non-ASCII). Keyless, offline.

Parameters

NameTypeRequiredDescription
textstringyesThe text to escape.
formatstringnojs | html | url | all-nonascii (default js).

Example call

Arguments

{
  "text": "Hello & goodbye"
}

curl

curl -X POST https://gateway.pipeworx.io/unicode/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"escape_string","arguments":{"text":"Hello & goodbye"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('escape_string', {
  "text": "Hello & goodbye"
});

More examples

{
  "text": "Café",
  "format": "html"
}
{
  "text": "path/to?query=value",
  "format": "url"
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "unicode": {
      "url": "https://gateway.pipeworx.io/unicode/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 15, 2026