Korean phrase-aware line wrapping / 한국어 의미 단위 줄바꿈
wrap_korean_textWraps Korean headlines into up to three lines at a set display width using punctuation and Korean phrase heuristics to prevent awkward word splits while preserving wording.
Instructions
Wrap a Korean headline at spaces using punctuation and Korean phrase heuristics. Preserves words; normalizes whitespace. Width is approximate display columns, NOT pixels (Hangul=2, Latin=1). Local and deterministic; no LLM or external API. Check fits: false means the width/line limit cannot be met without splitting a word. Review ambiguous phrasing editorially.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "wrap_korean_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| maxLines | No | Maximum lines. Short text stays on one line; default 3. | |
| maxWidth | No | Display columns per line; Hangul usually counts as 2. Default 30. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fits | Yes | ||
| text | Yes | ||
| lines | Yes | ||
| widths | Yes |