Text Block
text_blockWrap a Helvetica block and give its height. Line breaking is the same as text-wrap. Leading defaults to 1.2 times the font size, rounded half away from zero to 0.001 pt. Block height is the line count times the leading, and a blank line from a hard break counts. An empty string has height zero. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/text-block
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_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| font | No | helvetica | |
| size | No | 12 | |
| text | Yes | ||
| width | Yes | ||
| leading | No | Line height in points. Default is 1.2 × size |