Home / MCP Tools / Text Word-Wrap / Reflow
Live MCP tooldeveloper

Text Word-Wrap / Reflow

Wrap plain text to a fixed column width (stdlib textwrap), returning either an array of lines or a single re-flowed string.

A free key adds 10,000 calls a month, no card: /pricing, which also says whether the calculators are free or priced right now.

Parameters

ParameterTypeRequiredDescription
textstringrequiredText to wrap
modestringoptionalwrap | fill (default wrap) One of: wrap, fill
widthintegeroptionalMax characters per line, 1-1000 (default 70)
break_long_wordsbooleanoptionalSplit a word longer than width across lines (default true)

Call it over MCP (JSON-RPC 2.0)

curl -s https://agent.wingmanprotocol.com/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "text_wordwrap", "arguments": {"text": "hello from an agent"}}}'

Or plain HTTP

curl -s https://wingmanprotocol.com/tools/text_wordwrap \
  -H 'Content-Type: application/json' \
  -d '{"text": "hello from an agent"}'

Try it live

Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/text_wordwrap from your browser.

Related tools in Developer