{"id":"vector-norm","version":"1.0.0","description":"Compute the L1, L2 (Euclidean), or L-infinity (Chebyshev) norm of a finite-number vector.","supported_operations":["vector norm","vector magnitude","euclidean length","L1 norm","L2 norm","infinity norm"],"unsupported_operations":["general p-norms for non-integer or fractional p","matrix norms (use matrix-frobenius-norm-style tools)"],"semantics":["Input vector is an array of 1 to 64 finite JSON numbers, each bounded to at most 1000000 in magnitude.","Optional input p selects the norm: 1 for the L1 (sum of absolute values) norm, 2 (default) for the Euclidean norm, or the string \"inf\" for the L-infinity (maximum absolute value) norm.","The L2 norm uses Math.sqrt over an IEEE-754 double-precision sum of squares; results for irrational magnitudes are rounded to double precision, not exact.","The result is always non-negative; -0 is normalized to 0."],"limits":{"max_dim":64,"max_abs_value":1000000},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["vector"],"properties":{"vector":{"type":"array","minItems":1,"maxItems":64,"items":{"type":"number"}},"p":{"anyOf":[{"type":"integer","enum":[1,2]},{"type":"string","enum":["inf"]}]}}},"output_schema":{"type":"object","additionalProperties":false,"required":["result"],"properties":{"result":{"type":"number"}}},"examples":[{"input":{"vector":[3,4]},"output":{"result":5}}],"execute_url":"/v1/tools/vector-norm/versions/1.0.0/execute"}