format_fraction
Convert fraction strings like '1/4' to Unicode characters such as '¼' for recipe ingredient formatting in Paprika Recipe Manager.
Instructions
Format a fraction string to unicode fraction characters. Converts simple fractions like '1/4' to '¼' or complex ones like '31/200' to '³¹⁄₂₀₀'. Handles already-formatted unicode fractions and strips whitespace. This tool does not require server connectivity and can be used for testing.
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": {
"fraction": "<fraction>"
},
"name": "format_fraction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fraction | Yes | Fraction in the form 'numerator/denominator' (e.g., '1/4', ' 31 / 200 '), or already formatted unicode |