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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| platform | No | ||
| target_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |