Wrap a feature in a new flag
wrap_featureCreate a Boolean feature flag and get an SDK snippet to guard new code. The flag starts disabled; enable it later with toggle_flag.
Instructions
Create a Boolean feature flag and get back the SDK code snippet to guard the new code path with it. Returns the snippet only — apply the edit yourself. The flag starts DISABLED in every environment; enable it with toggle_flag when ready.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Flag key, e.g. new-checkout | |
| name | No | Display name; defaults to the key | |
| tags | No | ||
| project | Yes | Project key | |
| language | Yes | SDK language of the codebase being edited | |
| description | No | What this flag guards | |
| idempotency_key | No |