Collapse runs of spaces/tabs, trim line edges, and cap consecutive blank lines in plain text.
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 normalize |
collapse_spaces | boolean | optional | Collapse space/tab runs within a line to one space (default true) |
trim_lines | boolean | optional | Strip leading/trailing whitespace from each line (default true) |
max_blank_lines | integer | optional | Max consecutive blank lines to keep, 0-10 (default 1) |
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": "whitespace_normalize", "arguments": {"text": "hello from an agent"}}}'curl -s https://wingmanprotocol.com/tools/whitespace_normalize \
-H 'Content-Type: application/json' \
-d '{"text": "hello from an agent"}'Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/whitespace_normalize from your browser.
X-Payment header, or get a free key at /pricing (500 calls/month, no card, no crypto).