Not sure whether to use
FeatureProvider or session tools? Read
Tools and features first.FeatureProvider manages feature state (history, visibility, tool execution) but ships no business features. Your app provides a registry that maps agent tool names to React components and handlers.
Architecture
Basic setup
ToolRegistryEntry
Tool handler signature
Config handshake
When the agent joins, it sends aconfig message with features and collections. FeatureProvider:
- Registers available features from the config
- Maps tool names to registry entries
- The session (
useScenaroSession) registers Transport RPC methods for each tool
For simple one-off tools that don’t need feature UI, you can skip the registry and pass plain functions via the
tools option of useScenaroSession. See React integration.Common feature IDs
Feature IDs come from Cockpit configuration. Your registry keys must match.
What stays outside the SDK
Per the architecture decision (July 2026):- Feature UI components (too brand-specific)
- Collection API clients
- Product templates and styling
- Custom
FeatureManagerwrappers (legacy — migrate toFeatureProvider)