Opens connection configuration UI.
Optionaltype?: "connector" | "mcp"Connection backing. Undefined or 'connector' follows the legacy
connector-based flow. 'mcp' connects to an arbitrary MCP server URL
supplied via input.mcpServerUrl and skips connector resolution.
OptionalrequestId?: stringRequest ID for tracking the connection flow
OptionalintegrationKey?: stringIntegration key for creating a new connection
OptionalintegrationId?: stringIntegration ID for creating a new connection
OptionalconnectorId?: stringConnector ID for creating a standalone connection (without integration)
OptionalconnectorKey?: stringConnector key for creating a standalone connection (without integration)
OptionalconnectorVersion?: stringConnector version (used with connectorId)
OptionalexternalAppId?: stringExternal app ID for creating a connection scoped to an external app
OptionalexternalAppKey?: stringExternal app key for creating a connection scoped to an external app
OptionalconnectionId?: stringConnection ID for reconnecting an existing connection
OptionalconnectionKey?: stringStable, human-readable key for addressing this connection (unique per tenant)
Optionalname?: stringCustom name for the connection
OptionalconnectionParameters?: anyOptionalconnectorParameters?: Record<string, unknown>Connector-specific parameters
OptionalauthOptionKey?: stringAuthentication option key
OptionalallowMultipleConnections?: booleanWhen creating a connection from an integrationId/integrationKey, connectorId/connectorKey,
or externalAppId/externalAppKey, controls whether to reuse an existing matching connection
for the same tenant (default) or always create a new one (true).
Ignored when connectionId is provided — that path always targets the specific connection.
OptionalcustomState?: stringCustom state for OAuth flow
OptionalconnectionRequestId?: stringConnection request ID for tracking the connection lifecycle
Optionalintent?: stringIntent for agent-based connection (e.g. "Connect to Slack")
Optionaltheme?: "light" | "dark" | "auto"Controls the color theme of the connection UI.
'light' - Force light theme'dark' - Force dark theme'auto' - Inherit from parent's CSS color-scheme property (default)When not specified, defaults to 'auto' which automatically detects the theme
from the parent window's color-scheme CSS property.
The created/updated connection, or null if the user closes the dialog
Opens the connection management UI for an existing connection. Shows the connection's current status, agent session, and allows reconnection.
The connection, or null if the user closes the dialog
ExperimentalOpens an agent session viewer in an iframe overlay. Streams real-time agent progress via SSE.
Authentication is handled automatically — the client's token (from token or fetchToken)
is sent via a POST form submission, so it never appears in the URL.
A promise that resolves when the user closes the iframe
UI namespace for opening UI screens. Provides methods for user interactions that require UI.