Truncate to a UTF-8 budget
bpj_truncate_utf8_budgetFit text into a UTF-8 byte budget without cutting a code point.
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>",
"bytes": "<bytes>"
},
"name": "bpj_truncate_utf8_budget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| bytes | Yes |