@scenaro/sdk/protocol.
Built-in RPC methods
| Constant | Method name | Timeout |
|---|---|---|
UI_ACTIVITY_CHECK | scenaro__ui_activity_check | 3000ms |
COMPOSER_START_DICTATION | composer_start_dictation | 10000ms |
COMPOSER_END_DICTATION | composer_end_dictation | 15000ms |
COMPOSER_CANCEL_DICTATION | composer_cancel_dictation | 8000ms |
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.