webflow.getLaunchContext()The getLaunchContext API helps you understand how your Designer Extension was launched and provides contextual information about the launching element.
Use this method on initial load to identify how the extension was launched and provide context about the launching element. The App can use this information to show a customized UI or behavior to manage the element from where it was launched.
Launch Types
Your extension can be launched in three ways:
A Promise that resolves to a LaunchContext object or null.
LaunchContext
An object with the following properties:
type: 'AppConnection' | 'AppIntent' | 'AppsPanel'
Indicates how the extension was launched.
value: null | string | Record<'form' | 'image', 'create' | 'manage'>
Additional context about the launch:
null - For basic App Panel launchesstring - For deep links or custom values