face_compare
Compare two face photos and receive a similarity score to verify identity for onboarding, duplicate checks, and selfie-to-ID matching.
Instructions
Compare two face photos and return a similarity score from 0 to 100. Best for customer onboarding, duplicate-account checks, selfie-to-ID matching, and agent workflows that need a same-person decision. Input supports file path, HTTPS URL, data URL, or base64. Suggested business rule: score >=80 means high-confidence same person, but final thresholds should be calibrated by scenario.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"photo1": "<photo1>",
"photo2": "<photo2>"
},
"name": "face_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| photo1 | Yes | First face photo: local file path, HTTPS URL, data URL, or base64. | |
| photo2 | Yes | Second face photo: local file path, HTTPS URL, data URL, or base64. | |
| sourcePhotoType | No | Reference photo type: 1=watermarked ID photo, 2=HD photo. Default: 2. | 2 |