Get Feature Flag
get_flagRead one feature flag by its KEY (e.g. "beta-ui") with everything about it: id, key, description, state (off | on | on-with-rule), valueType (boolean | string | number | json), onValue / offValue, the targeting rule, any scheduled state transition, and where the flag came from (source, triagedAt). Evaluation counts are not available through the API. Use this to confirm a flag key and its targeting before relying on it in code; list_feature_flags shows every flag. Fails with FLAG_NOT_FOUND when no flag has the given key. The result carries warnings when the flag cannot mean what it looks like — switched on while its onValue is false, or a rule on a plan or role the app does not have. A warning never blocks the write; read it and fix the flag.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | Id of the Bridge app to act on for this call (see list_apps). Omit to use the current app. | |
| key | Yes | Flag KEY, e.g. "beta-ui" (see list_feature_flags). |