Home / Servers / Text Toolkit / dedupe_lines

Dedupe lines

An MCP tool from the Text Toolkit server, hosted on mcp.hjlabs.in.

Remove duplicate lines from a text, keeping the first occurrence and the original order. Optionally ignore case and surrounding whitespace. Reports how many were removed.

Name on the gateway: text__dedupe_lines · read-only.

Parameters

NameTypeDescription
text requiredstringLines separated by newlines.
case_insensitivebooleanTreat "A" and "a" as the same. Default false.
trimbooleanIgnore leading and trailing spaces when comparing. Default true.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "text__dedupe_lines",
  "arguments": {
    "text": "…"
  }
}

Or connect the Text Toolkit server directly, which lists 43 tools including this one:

Run in your terminal
claude mcp add --transport http hj-text https://mcp.hjlabs.in/mcp/text \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the dedupe lines tool with text set to ….

More from Text Toolkit