---
type: Attested Computation
title: roku-launch
identifier: home-automation/roku-launch
description: Launch an app on a Roku device via its ECP API, optionally deep-linking straight into a piece of content when the app supports it (e.g. a Netflix title id) -- pairs with home-automation/roku-apps.py for the app_id.
pack: home-automation
tags:
- internet
runtime: fragletc
image: ofthemachine/python3@sha256:a015b4f9f0e7c1648f8fcd4164f6a296dd3c9189404f88f333a9764d08d13522
network: required
stdin: none
execution_class: environmental
procedure_hash: sha256:a212b44db1e8e500b5942f02e9471fd4514d195f789cc5e8fdea0abcf461a31e
parameters:
- name: ip
  type: string
  required: true
  description: LAN IP address of the Roku, e.g. 192.168.0.73
- name: app_id
  type: string
  required: true
  description: App name (e.g. Netflix, YouTube) or numeric app id from home-automation/roku-apps.py
- name: content_id
  type: string
  required: false
  description: App-specific content id to deep-link to (e.g. a Netflix title id from its netflix.com/title/<id> URL)
- name: media_type
  type: string
  required: false
  description: Content type for the deep link, e.g. movie, series, episode
computation: https://tools.ofthemachine.com/home-automation/roku-launch.py
executor:
  resource: https://github.com/ofthemachine/fraglet
  receipt:
  - schema
  - fragletc
  - procedure
  - procedure_hash
  - image
  - image_digest
  - network
  - stdin_mode
  - params
  - inputs
  - argv
  - env
  - memo_key
  - started
  - finished
  - exit_code
  - stdout
  - outputs
  format: fraglet-receipt/2 (fragletc --receipt <path>, or FRAGLETC_RECEIPT_DIR)
attester:
  resource: https://tools.ofthemachine.com/receipt/attest.py
  method: 'deterministic, no re-execution: procedure_hash equals sha256 of computation; memo_key recomputes from the receipt''s own fields; claimed params and any artifact hash match the receipt'
generated:
  by: process:tools/catalog/compile.py
  at: '2026-11-13T18:27:40Z'
---

# roku-launch

Launch an app on a Roku device via its ECP API, optionally deep-linking straight into a piece of content when the app supports it (e.g. a Netflix title id) -- pairs with home-automation/roku-apps.py for the app_id.

Use when the user asks to open an app or channel on a Roku, or to jump straight to a specific show or movie inside one via a deep link.

# Schema

## Parameters
- `ip` (string, required) — LAN IP address of the Roku, e.g. 192.168.0.73
- `app_id` (string, required) — App name (e.g. Netflix, YouTube) or numeric app id from home-automation/roku-apps.py
- `content_id` (string, optional) — App-specific content id to deep-link to (e.g. a Netflix title id from its netflix.com/title/<id> URL)
- `media_type` (string, optional) — Content type for the deep link, e.g. movie, series, episode

## Outputs
- stdout (the anonymous result)

# Execution

The computation is [`home-automation/roku-launch.py`](https://tools.ofthemachine.com/home-automation/roku-launch.py) (frontmatter `computation`; in `tools.tar.gz` the same file sits at `home-automation/roku-launch.py` beside this bundle), run by `fragletc` in `ofthemachine/python3@sha256:a015b4f9f0e7c1648f8fcd4164f6a296dd3c9189404f88f333a9764d08d13522` with network `required`. Its identity is `procedure_hash` = sha256 of that file, shebang included — the same value every receipt records. Parameters are passed as `-p name=value`; `--receipt run.json` (or `FRAGLETC_RECEIPT_DIR`) writes the receipt, a `fraglet-receipt/2` JSON document with the fields listed under `executor.receipt`.

# Attestation

A run's receipt is attested with [`receipt/attest.py`](https://tools.ofthemachine.com/receipt/attest.py): the computation that ran is this script (`procedure_hash`), the receipt is internally consistent (`memo_key` recomputes from its own fields), the claimed parameters are the ones that ran, and an artifact claimed as an output hashes to what the receipt recorded. No re-execution: attestation is provenance fidelity, not reproduction.

Environmental: the tool reaches the network, so outputs depend on state outside its inputs; the receipt records exactly what ran and what came out and makes no reproduction claim.

Skill: [SKILL.md](https://tools.ofthemachine.com/home-automation/SKILL.md)
