{"id":"text-wrap-width","version":"1.0.0","description":"Hard-wrap text by Unicode code-point width and return the resulting lines.","supported_operations":["wrap text at a fixed width","hard wrap a string","split text into width limited lines","break long words into lines","format text to a character width","wrap Unicode text by code points"],"unsupported_operations":["grapheme-cluster display width","Unicode line-breaking opportunity analysis"],"semantics":["Width counts Unicode code points, not UTF-16 units, graphemes, columns, or bytes.","CRLF and CR become LF; LF forces a break; ASCII spaces and tabs between words collapse to one space.","When break_long_words is false, an indivisible word may exceed width.","Reference: Unicode 16.0.0, UAX #14 Revision 55; this tool uses explicit rules rather than claiming UAX #14 conformance."],"limits":{"max_input_bytes":4096,"max_width":256,"max_lines":4096,"max_output_bytes":16384},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["text","width","break_long_words"],"properties":{"text":{"type":"string","maxLength":4096},"width":{"type":"integer","minimum":1,"maximum":256},"break_long_words":{"type":"boolean"}}},"output_schema":{"type":"object","additionalProperties":false,"required":["lines","standard_version"],"properties":{"lines":{"type":"array","items":{"type":"string"},"maxItems":4096},"standard_version":{"type":"string","const":"Unicode 16.0.0"}}},"examples":[{"input":{"text":"alpha beta gamma","width":10,"break_long_words":true},"output":{"lines":["alpha beta","gamma"],"standard_version":"Unicode 16.0.0"}},{"input":{"text":"😀😀😀","width":2,"break_long_words":true},"output":{"lines":["😀😀","😀"],"standard_version":"Unicode 16.0.0"}}],"execute_url":"/v1/tools/text-wrap-width/versions/1.0.0/execute"}