tv_evaluate
Run custom JavaScript on a Smart TV app to inspect state, perform assertions, or restore localStorage after a debug session. Supports promises and any configured device.
Instructions
Run arbitrary JavaScript in the app page and return the value (escape hatch). Use for custom assertions, reading app state, or restoring localStorage after a debug relaunch. Old TVs are Chrome 38 — keep the expression ES5.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device id from devices.json. Omit to use the default device. | |
| expression | Yes | JS expression to evaluate in the page. | |
| awaitPromise | No | Await a returned promise (default true). |