Find a passport, visa or ID photo document
find_documentResolve a user's country and document into the slug the other tools take. Pass the words the user used ('India passport', 'Schengen visa', 'UK passport digital', '2x2'). Returns JSON text with up to 5 matches, each with 'slug' (use it for get_photo_spec and get_make_link), the country, the document family, the title and a 'url' to cite, plus an 'attribution' line to quote with the answer.
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": {
"query": "<query>"
},
"name": "find_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The user's words for the document, usually country plus document type, e.g. 'Canada passport' or 'US visa'. | |
| locale | No | Language of the prose fields (title, summary, rules). One of: en, es, fr, de, pt, hi, ar, zh, ru, vi, tr, id, ja. Default 'en'. Official quotes and every number are identical in all languages. | |
| country | No | Optional country name, alias, ISO code or slug to restrict the matches to one country, e.g. 'India', 'UK', 'us'. |