Identify a file by its checksum
lookup_hashWhich app and which build a file checksum names. Use this when you have a hash and no package name — an APK pulled off a device, a sample from a threat feed, a digest in an incident report. Takes an MD5 (32 hex), SHA-1 (40) or SHA-256 (64) and works out which from the length, so do not try to label it; colons, spaces and upper case are fine and are normalised. A miss is a real answer, not an error, and it is free when nothing matches (found: false): we hold no build with that checksum, and says nothing about whether the file exists elsewhere. READ note: only SHA-256 is carried by every stored build, so a SHA-1 or MD5 miss can mean we hold the file and never computed that digest for it — re-check with the SHA-256 if you have it. Once you have the packageName and apkId, the per-build tools will tell you what the file is.
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": {
"hash": "<hash>"
},
"name": "lookup_hash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | Yes | An MD5, SHA-1 or SHA-256 hex digest of the file. The algorithm is taken from its length. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | Yes | The hash as matched: lowercase hex, separators stripped. | |
| note | Yes | What a miss does and does not prove for THIS algorithm. Only SHA-256 is carried by every stored build, so a SHA-1 or MD5 miss can mean we hold the file and never computed that digest for it. | |
| found | Yes | We hold a build with this checksum. FALSE is a complete answer and a 200 — it says nothing about whether the file exists anywhere else. | |
| match | Yes | The build, when found: packageName, appName, apkId (the id every per-build call takes), versionName, versionCode, arch, format, fileSize in bytes, sha256, isLatest and uploadedAt. | |
| algorithm | Yes | Inferred from the value's own length. Not a parameter you send. |