App Connector: Call Channel Function
app_functionTrigger a single function exposed by a sideloaded Roku channel through the App Connector. Call list_app_connector_functions first to discover the function name and parameters.
Instructions
Invoke a single function on the sideloaded channel through the App Connector. Use this for any one-off function call exposed by the channel; only wrap it in an appFunction Action Script step when the call is part of a multi-step flow. The set of available functions is channel-specific — every sideloaded app exports its own. Always call list_app_connector_functions first to discover the exact name and the declared parameter list (params: [{ name, type }, …]) for the running channel before calling this tool. functionParams is a positional array with one entry per declared parameter, in declaration order. Each entry's value matches the declared type: String/Integer/Boolean/number types are primitives; roAssociativeArray is a JSON object (still wrapped in the outer array slot); roArray / roList is a JSON array (also wrapped). For a zero-arg function pass []. A named object ({ <paramName>: value }, keyed by names from list_app_connector_functions) is accepted for backward compatibility and rewritten to a positional array before the call is sent. Authors should still emit positional form: a typo in a key silently passes undefined for that slot. Auto-connects the App Connector session if needed; surfaces the call as a toast in Dev Studio. Invokes channel code, so it is not read-only and not assumed idempotent — a function may mutate app state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Optional target device (IP or serial). Omit to use the focused tab. | |
| functionName | Yes | The channel function name from list_app_connector_functions. | |
| functionParams | No | Positional array of values, one per RALE-declared parameter. Use `[]` for zero-arg functions. A named object keyed by RALE param names is also accepted and will be normalized to positional before the call. |