Fraction Calculator | agent view
The same page content and links, with explicit tool capabilities. Read the processing notes before using a tool.
Tool capabilities
{
"id": "fractions",
"category": "calculators",
"built": true,
"requirements": "Exact rational arithmetic and mixed-number simplification.",
"implementation": {
"fields": [
{
"key": "a",
"label": "Numerator A",
"value": 1,
"type": "number",
"min": -1000000,
"max": 1000000,
"step": 1
},
{
"key": "b",
"label": "Denominator A",
"value": 2,
"type": "number",
"min": -1000000,
"max": 1000000,
"step": 1
},
{
"key": "op",
"label": "Operation",
"value": "+",
"type": "select",
"values": [
"+",
"-",
"×",
"÷"
]
},
{
"key": "c",
"label": "Numerator B",
"value": 1,
"type": "number",
"min": -1000000,
"max": 1000000,
"step": 1
},
{
"key": "d",
"label": "Denominator B",
"value": 3,
"type": "number",
"min": -1000000,
"max": 1000000,
"step": 1
}
],
"input": false,
"live": true,
"presentation": "metrics",
"note": "The reduced fraction is exact. Mixed numbers show the same value; the decimal is approximate.",
"experience": {
"automatic": true,
"single": false,
"inputMaxLength": 1000000,
"inputMode": "text",
"label": "Your text",
"placeholder": "Type or paste your input…",
"help": "Change the input or settings to update your result. Results update as you type. Up to 1,000,000 characters.",
"action": null
},
"mode": "automatic",
"interactive": false
},
"execution": "POST /api/v1/tools/fractions/run",
"api": {
"id": "fractions",
"name": "Fractions",
"category": "calculators",
"description": "Add, subtract, multiply, or divide two fractions.",
"notes": "The reduced fraction is exact. Mixed numbers show the same value; the decimal is approximate.",
"human_path": "/en/calculators/fractions/",
"method": "POST",
"endpoint": "/api/v1/tools/fractions/run",
"schema_url": "/api/v1/tools/fractions",
"input_schema": {
"type": "object",
"additionalProperties": false,
"properties": {
"input": {
"type": "string",
"maxLength": 1000000,
"default": "",
"description": "Plain text input. File tools use files instead unless otherwise documented."
},
"options": {
"type": "object",
"additionalProperties": false,
"properties": {
"a": {
"type": "number",
"description": "Numerator A",
"default": 1.0,
"minimum": -1000000,
"maximum": 1000000,
"multipleOf": 1
},
"b": {
"type": "number",
"description": "Denominator A",
"default": 2.0,
"minimum": -1000000,
"maximum": 1000000,
"multipleOf": 1
},
"op": {
"type": "string",
"description": "Operation",
"default": "+",
"enum": [
"+",
"-",
"×",
"÷"
]
},
"c": {
"type": "number",
"description": "Numerator B",
"default": 1.0,
"minimum": -1000000,
"maximum": 1000000,
"multipleOf": 1
},
"d": {
"type": "number",
"description": "Denominator B",
"default": 3.0,
"minimum": -1000000,
"maximum": 1000000,
"multipleOf": 1
}
}
}
}
},
"output_schema": {
"type": "object",
"required": [
"tool",
"result"
],
"properties": {
"tool": {
"type": "string"
},
"result": {
"type": "object",
"required": [
"text",
"files"
],
"properties": {
"text": {
"type": [
"string",
"null"
]
},
"data": {
"description": "Parsed JSON when the textual result is JSON."
},
"name": {
"type": "string"
},
"mime": {
"type": "string"
},
"files": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"mime",
"bytes",
"base64"
],
"properties": {
"name": {
"type": "string"
},
"mime": {
"type": "string"
},
"bytes": {
"type": "integer"
},
"base64": {
"type": "string",
"contentEncoding": "base64"
}
}
}
}
}
}
}
},
"processing": "Server; same transformation code as browser tools",
"limits": {
"request_bytes": 8388608,
"input_characters": 1000000,
"files_bytes": 5242880,
"max_files": 0,
"timeout_seconds": 12
}
},
"agent_processing": "Server; same transformation code as browser tools",
"browser_agent": {
"supported": true,
"name": "run_current_tool",
"discovery": "WebMCP on the human page in a supporting browser",
"verification": "See audit/API-AUDIT.md; availability is not verification"
}
}Page guide
Add, subtract, multiply, or divide two fractions.
How to use Fractions
- Enter the values you want to calculate and choose the relevant units or settings.
- The result updates as you type. Adjust the available settings if needed.
- Review the result, then use Copy result or a download link when available.
What to expect
Add, subtract, multiply, or divide two fractions. Enter whole-number numerators and nonzero denominators from −1,000,000 to 1,000,000. The result shows a reduced fraction, a signed mixed number and a decimal approximation. Dividing by a zero-valued fraction is undefined. Processing stays on your device.