@scenaro/sdk/protocol.
Built-in RPC methods
Timeout constants
FRONTEND_TOOL_MS (10s) or the agent receives a timeout error.
Tool method resolution
Cockpit can override the RPC method name per tool:config payload — via session tools
(useScenaroSession({ tools })) or FeatureProvider / local feature runtime.
Request / response shapes
RpcToolRequest (inbound)
RpcToolResponse (outbound)
Example handler
response.data is sent back to the agent. componentData updates the feature UI via FeatureProvider.
Agent-side RPC
The voice agent may also call built-in methods likescenaro__ui_activity_check to verify the user is interacting with feature panels. The SDK’s ui-activity-tracker responds automatically during an active session.