Text Wrap
text_wrapWrap text to a measure in Helvetica or Helvetica-Bold. Hard breaks are LF, CR, or CRLF. Inside a paragraph, spaces collapse to one and leading and trailing spaces are dropped. A word moves to the next line when it does not fit. A word wider than the whole measure breaks between characters, and those lines are marked broken. The width of each line uses the same AFM rounding as text-width. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/text-wrap
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>",
"width": "<width>"
},
"name": "text_wrap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| font | No | helvetica | |
| size | No | 12 | |
| text | Yes | ||
| width | Yes | Measure in points |