{"id":"bytes-parse-human","version":"1.0.0","description":"Parse an SI or IEC byte-size string and return an exact integer byte count using explicit rounding.","supported_operations":["parse a human file size","turn 1.5 GiB into bytes","convert 300 MB to exact bytes","parse 10 kB","human size to byte count","read SI or IEC storage size"],"unsupported_operations":["format a byte count","parse bit-rate units"],"semantics":["Accepted grammar is a canonical non-negative decimal, optional single ASCII space, then B, kB, MB, GB, TB, PB, KiB, MiB, GiB, TiB or PiB.","SI units use powers of 1000 and IEC units use powers of 1024.","Fractional bytes use half_even, half_up, or down exactly; no binary floating-point arithmetic is used."],"limits":{"max_input_bytes":128,"max_digits":30,"max_output_bytes":512,"max_iterations":0},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["text","rounding"],"properties":{"text":{"type":"string","minLength":1,"maxLength":128},"rounding":{"type":"string","enum":["half_even","half_up","down"]}}},"output_schema":{"type":"object","additionalProperties":false,"required":["bytes","rounding","standard_version"],"properties":{"bytes":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"rounding":{"type":"string","enum":["half_even","half_up","down"]},"standard_version":{"type":"string","const":"IEC 80000-13:2008; SI Brochure, 9th edition (2019, updated 2022)"}}},"examples":[{"input":{"text":"1.5GiB","rounding":"half_even"},"output":{"bytes":"1610612736","rounding":"half_even","standard_version":"IEC 80000-13:2008; SI Brochure, 9th edition (2019, updated 2022)"}},{"input":{"text":"300 MB","rounding":"down"},"output":{"bytes":"300000000","rounding":"down","standard_version":"IEC 80000-13:2008; SI Brochure, 9th edition (2019, updated 2022)"}}],"execute_url":"/v1/tools/bytes-parse-human/versions/1.0.0/execute"}