Text Fit
text_fitLargest Helvetica size, on a fixed step, at which one line still fits a width. Sizes run from minSize to maxSize in steps (defaults 6, 72 and 0.5 points). Empty text fits at maxSize. If the line does not fit at minSize, the call is rejected. Width uses the same AFM rounding as text-width, so the size is not a float division of the two widths. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/text-fit
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_fit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| font | No | helvetica | |
| step | No | 0.5 | |
| text | Yes | ||
| width | Yes | ||
| maxSize | No | 72 | |
| minSize | No | 6 |