Line Sort

Text REST API MCP

Sort lines alphabetically, numerically, or by length. Ascending or descending, case-sensitive or not.

This page documents the HTTP endpoint POST /api/tools/line-sort/execute. See the MCP reference →

Call it over REST

POST https://api.findutils.com/api/tools/line-sort/execute · no API keys · 60 requests/min per IP

Execute — verified arguments

curl -X POST https://api.findutils.com/api/tools/line-sort/execute \
  -H "Content-Type: application/json" \
  -d '{
    "text": "banana\napple\ncherry"
  }'

Parameter schema for this endpoint

curl https://api.findutils.com/api/tools/line-sort

Interactive docs · OpenAPI 3.1 spec · All REST tools

Input schema

Argument Type Required Description
text string yes Newline-separated input.
order string (asc | desc) no Sort direction. Default: "asc".
mode string (alpha | numeric | length) no Comparison mode. Default: "alpha".
case_sensitive boolean no Case-sensitive comparison. Defaults to false. Default: false.

Example arguments (verified)

{
  "text": "banana\napple\ncherry"
}

Also an MCP tool

Claude, Cursor, and any MCP client can call this tool as findutils:line_sort after one connect command.

Connect once

claude mcp add findutils --transport http https://mcp.findutils.com/
Open the MCP reference for Line Sort →

More Text tools