Skip to content

Line Dedupe MCP tool

MCP findutils:line_dedupe

Remove duplicate lines, keeping either the first or the last occurrence. Optionally case-insensitive, trim-aware, or inverted to show only the repeated lines.

Arguments

application/json
  • text

    string required

    Newline-separated input.

  • case_sensitive

    boolean optional

    Case-sensitive comparison. Defaults to true. Default true.

  • trim_lines

    boolean optional

    Trim each line before comparing. Defaults to true. Default true.

  • keep

    string optional

    Which occurrence of a repeated line to keep. Surviving lines stay in their original order either way. One of first · last. Default "first".

  • duplicates_only

    boolean optional

    Return only the lines that appear more than once, one copy each, instead of the deduplicated text. Default false.

Example arguments

Verified
{
  "text": "a\nb\na"
}