{"id":"bytesize-convert","version":"1.0.0","description":"Convert a non-negative integer byte size between IEC binary units as an exact rational.","supported_operations":["bytesize convert","convert binary byte units","convert kibibytes to bytes"],"unsupported_operations":["SI kB/MB/GB","bits","signed byte sizes","decimal megabytes","fuzzy unit names"],"semantics":["value is a non-negative canonical integer string amount in the from unit; -0 is accepted and canonicalized to 0.","from and to are exactly one of B, KiB, MiB, GiB, TiB using the BYTE_SIZE table (powers of 1024).","The result is the reduced rational (value * from_bytes) / to_bytes expressed in to units.","Zero is numerator 0 over denominator 1. Negative sizes, SI decimal prefixes, and bit units are rejected.","Input integers and the reduced numerator and denominator may have at most 1000 digits excluding sign."],"limits":{"max_digits":1000,"units":["B","KiB","MiB","GiB","TiB"]},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["value","from","to"],"properties":{"value":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)$","maxLength":1001},"from":{"type":"string","enum":["B","KiB","MiB","GiB","TiB"]},"to":{"type":"string","enum":["B","KiB","MiB","GiB","TiB"]}}},"output_schema":{"type":"object","additionalProperties":false,"required":["numerator","denominator"],"properties":{"numerator":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"denominator":{"type":"string","pattern":"^[1-9][0-9]*$"}}},"examples":[{"input":{"value":"1","from":"KiB","to":"B"},"output":{"numerator":"1024","denominator":"1"}}],"execute_url":"/v1/tools/bytesize-convert/versions/1.0.0/execute"}