Wrap plain text to a fixed column width (stdlib textwrap), returning either an array of lines or a single re-flowed string.
Free tier eligible — 500 calls/month with a free key from /pricing; x402 pay-per-call above quota.
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | required | Text to wrap |
mode | string | optional | wrap | fill (default wrap) One of: wrap, fill |
width | integer | optional | Max characters per line, 1-1000 (default 70) |
break_long_words | boolean | optional | Split a word longer than width across lines (default true) |
curl -s https://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"}}}'curl -s https://wingmanprotocol.com/tools/text_wordwrap \
-H 'Content-Type: application/json' \
-d '{"text": "hello from an agent"}'Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/text_wordwrap from your browser.
X-Payment header, or get a free key at /pricing (500 calls/month, no card, no crypto).