> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shanone.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# LaunchDarkly

> Feature flags, experiments, AI Configs, segments, and audit logs — full feature management

# LaunchDarkly

Shanone's LaunchDarkly integration gives your agent 76 tools covering nearly all of LaunchDarkly's feature management platform — flags, environments, segments, experiments, AI Configs, approvals, audit logs, and team/role administration.

## Getting Started

<Steps>
  <Step title="Generate a LaunchDarkly Access Token">
    In your LaunchDarkly account, go to **Account Settings → Authorization** and create a Personal or Service Access Token (SDK/Mobile keys will not work).
  </Step>

  <Step title="Add it to Shanone">
    Open **Integrations** in the Shanone dashboard, select LaunchDarkly, and paste in your Access Token.
  </Step>

  <Step title="Retry your request">
    Once saved, `shanone_execute_tool` calls for `launchdarkly_*` tools will succeed.
  </Step>
</Steps>

## Available Tools

Shanone provides **76 tools** for LaunchDarkly, organized into these categories:

<AccordionGroup>
  <Accordion title="Feature flags & triggers">
    `launchdarkly_list_feature_flags`, `launchdarkly_get_feature_flag`, `launchdarkly_create_feature_flag`, `launchdarkly_update_feature_flag`, `launchdarkly_toggle_feature_flag`, `launchdarkly_delete_feature_flag`, `launchdarkly_copy_feature_flag`, `launchdarkly_get_feature_flag_status`, `launchdarkly_list_feature_flag_statuses`, `launchdarkly_list_flag_triggers`, `launchdarkly_create_flag_trigger`, `launchdarkly_delete_flag_trigger`
  </Accordion>

  <Accordion title="Approvals & scheduled changes">
    `launchdarkly_list_approval_requests_for_flag`, `launchdarkly_create_approval_request_for_flag`, `launchdarkly_review_approval_request_for_flag`, `launchdarkly_apply_approval_request_for_flag`, `launchdarkly_delete_approval_request_for_flag`, `launchdarkly_list_scheduled_changes`, `launchdarkly_create_scheduled_change`
  </Accordion>

  <Accordion title="Projects & environments">
    `launchdarkly_list_projects`, `launchdarkly_get_project`, `launchdarkly_create_project`, `launchdarkly_update_project`, `launchdarkly_delete_project`, `launchdarkly_list_environments`, `launchdarkly_get_environment`, `launchdarkly_create_environment`, `launchdarkly_update_environment`, `launchdarkly_delete_environment`
  </Accordion>

  <Accordion title="Segments & contexts">
    `launchdarkly_list_segments`, `launchdarkly_get_segment`, `launchdarkly_create_segment`, `launchdarkly_update_segment`, `launchdarkly_delete_segment`, `launchdarkly_search_contexts`, `launchdarkly_get_context_attribute_names`, `launchdarkly_evaluate_context_instance`
  </Accordion>

  <Accordion title="Experiments, metrics & holdouts">
    `launchdarkly_list_experiments`, `launchdarkly_get_experiment`, `launchdarkly_create_experiment`, `launchdarkly_list_metrics`, `launchdarkly_get_metric`, `launchdarkly_create_metric`, `launchdarkly_update_metric`, `launchdarkly_list_holdouts`, `launchdarkly_create_holdout`
  </Accordion>

  <Accordion title="AI Configs">
    `launchdarkly_list_ai_configs`, `launchdarkly_get_ai_config`, `launchdarkly_create_ai_config`, `launchdarkly_update_ai_config`, `launchdarkly_delete_ai_config`, `launchdarkly_list_ai_config_variations`, `launchdarkly_create_ai_config_variation`, `launchdarkly_get_ai_config_variation`
  </Accordion>

  <Accordion title="Insights & audit log">
    `launchdarkly_get_deployment_frequency_chart`, `launchdarkly_get_lead_time_chart`, `launchdarkly_get_flag_status_chart`, `launchdarkly_list_audit_log_entries`, `launchdarkly_get_audit_log_entry`, `launchdarkly_search_audit_log_entries`, `launchdarkly_get_audit_log_entry_counts`
  </Accordion>

  <Accordion title="Teams, roles & members">
    `launchdarkly_list_account_members`, `launchdarkly_get_account_member`, `launchdarkly_list_custom_roles`, `launchdarkly_get_custom_role`, `launchdarkly_create_custom_role`, `launchdarkly_list_teams`, `launchdarkly_get_team`, `launchdarkly_create_team`
  </Accordion>

  <Accordion title="Webhooks & workflows">
    `launchdarkly_list_webhooks`, `launchdarkly_get_webhook`, `launchdarkly_create_webhook`, `launchdarkly_update_webhook`, `launchdarkly_delete_webhook`, `launchdarkly_list_workflows`, `launchdarkly_create_workflow`
  </Accordion>
</AccordionGroup>

## Common Use Cases

<CardGroup cols={2}>
  <Card title="Progressive rollout" icon="git-branch">
    Toggle a flag on for a percentage of traffic and watch its status before a full rollout
  </Card>

  <Card title="Kill-switch response" icon="power">
    Instantly disable a misbehaving feature by toggling its flag off across environments
  </Card>

  <Card title="A/B test analysis" icon="flask-conical">
    Pull experiment and metric data to summarize which variation is winning
  </Card>

  <Card title="Compliance auditing" icon="scroll-text">
    Search the audit log for who changed a specific flag and when
  </Card>
</CardGroup>

## Troubleshooting

<AccordionGroup>
  <Accordion title="launchdarkly_toggle_feature_flag doesn't seem to take effect">
    Flags are toggled per-environment — confirm you're targeting the right `environmentKey` (e.g. `production` vs `staging`), since toggling in one environment has no effect on others.
  </Accordion>

  <Accordion title="launchdarkly_update_feature_flag or launchdarkly_delete_feature_flag returns a conflict/approval error">
    Some LaunchDarkly workspaces require approval workflows for flag changes — use `launchdarkly_create_approval_request_for_flag` and `launchdarkly_review_approval_request_for_flag`/`launchdarkly_apply_approval_request_for_flag` instead of updating directly.
  </Accordion>

  <Accordion title="Access Token works for some tools but not others">
    LaunchDarkly access tokens carry specific role/permission scopes — a token scoped to a single project or reader role will fail on admin-level tools like `launchdarkly_create_custom_role` or `launchdarkly_create_project`; generate a token with broader permissions if needed.
  </Accordion>
</AccordionGroup>
