extract_contact_from_image
Extracts contact details from PNG, JPG, WEBP, or GIF images and optionally saves them to Google Contacts.
Instructions
Load a PNG, JPG/JPEG, WEBP, or GIF image (from a local file path, file:// URL, data URI, or base64 string) to extract contact details. Uses MCP client sampling or a configured Vision API if available; otherwise returns the image content block directly to the calling harness (Claude, ChatGPT, or Gemini) so the harness can read the image and call upsert_contact.
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": {
"imageSource": "<imageSource>"
},
"name": "extract_contact_from_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| autoSave | No | If server-side extraction succeeds, automatically upsert the contact into Google Contacts (default: true) | |
| mimeType | No | Optional MIME type override (e.g. 'image/png', 'image/jpeg') | |
| imageSource | Yes | Path to local .png/.jpg/.webp file, file:// URL, data:image/...;base64 URI, or base64 string | |
| additionalContext | No | Optional notes or context to attach or guide extraction | |
| setAsContactPhoto | No | If true, also set the image as the contact's avatar photo (default: false) |