{"id":"json-array-distinct-by","version":"1.0.0","description":"Deduplicate a JSON array of objects based on specific keys.","supported_operations":["json array distinct by","dedupe json array","unique json objects by key"],"unsupported_operations":["fuzzy deduplication","complex expression unique"],"semantics":["Outputs a new array containing only the first object encountered for each distinct combination of the specified keys.","Follows the original array ordering for the kept objects.","Missing or null keys are grouped together and treated as the string 'undefined' or 'null'."],"limits":{"max_array_items":10000,"max_output_items":10000,"max_keys":32},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["array","keys"],"properties":{"array":{"type":"array","maxItems":10000,"items":{"type":"object"}},"keys":{"type":"array","minItems":1,"maxItems":32,"uniqueItems":true,"items":{"type":"string","minLength":1}}}},"output_schema":{"type":"object","additionalProperties":false,"required":["result","count"],"properties":{"result":{"type":"array","items":{"type":"object"}},"count":{"type":"integer"}}},"examples":[{"input":{"array":[{"id":1,"v":"A"},{"id":1,"v":"B"},{"id":2,"v":"C"}],"keys":["id"]},"output":{"result":[{"id":1,"v":"A"},{"id":2,"v":"C"}],"count":2}}],"execute_url":"/v1/tools/json-array-distinct-by/versions/1.0.0/execute"}