{"id":"bytesize-compare","version":"1.0.0","description":"Compare two non-negative integer byte sizes by exact byte amounts.","supported_operations":["bytesize compare","compare binary byte sizes","compare kibibytes and mebibytes"],"unsupported_operations":["SI kB/MB/GB","bits","signed byte sizes","sort a list of sizes","approximate comparison"],"semantics":["left and right are objects with a non-negative canonical integer value and a byte-size unit.","Units are exactly B, KiB, MiB, GiB, TiB using the BYTE_SIZE table (powers of 1024).","Each side is converted to bytes as a BigInt and those amounts are compared.","cmp is the JSON integer -1, 0, or 1 according as left is less than, equal to, or greater than right.","Input -0 is canonicalized to 0; other negatives, SI decimal prefixes, and bit units are rejected."],"limits":{"max_digits":1000,"units":["B","KiB","MiB","GiB","TiB"]},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["left","right"],"properties":{"left":{"type":"object","additionalProperties":false,"required":["value","unit"],"properties":{"value":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)$","maxLength":1001},"unit":{"type":"string","enum":["B","KiB","MiB","GiB","TiB"]}}},"right":{"type":"object","additionalProperties":false,"required":["value","unit"],"properties":{"value":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)$","maxLength":1001},"unit":{"type":"string","enum":["B","KiB","MiB","GiB","TiB"]}}}}},"output_schema":{"type":"object","additionalProperties":false,"required":["cmp"],"properties":{"cmp":{"type":"integer","enum":[-1,0,1]}}},"examples":[{"input":{"left":{"value":"1","unit":"KiB"},"right":{"value":"1024","unit":"B"}},"output":{"cmp":0}}],"execute_url":"/v1/tools/bytesize-compare/versions/1.0.0/execute"}