verify_api_exists
Confirm whether an API is real and usable on a specific version to prevent hallucinated code. Returns availability verdict with migration target if deprecated.
Instructions
Anti-hallucination check. Confirms whether an API is real AND usable on a specific version before an agent writes code against it.
Args: name: symbol name, e.g. "scrollTargetBehavior" or "animateItem". target_version: the version to check against ("17.0", "1.6.0", "34"). platform: "android" | "apple" | "" to search both.
Returns a verdict: available / deprecated / not-yet-available / unknown, with the migration target when relevant.
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": {
"name": "<name>",
"target_version": "<target_version>"
},
"name": "verify_api_exists"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| platform | No | ||
| target_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |