All use cases

Personal

Voice-drive your own smart TV: 3-tool remote via official local API

Remote in the couch again — you want "Hey Grok, open Netflix" on your own TV.

Share

What hurt

@0xCodez (roundup also @InvestingVault) built a tiny TV remote with exactly three tools (open_netflix, press_key, status) against the TV's official local remote-control API — same class as phone remote apps — then plugged it into Grok Bot. Steps: same Wi-Fi, photo of Settings→About into Claude Code with his prompt, pair with Allow on the TV once, never root/flash/sideload. Author-quoted prompt. Own device only. Not affiliated with xAI.

What to install or create

Same Wi-Fi → About photo + author prompt in Claude Code → 3-tool MCP → Allow on TV → Grok voice.

Bots

  • TV ears

    Voice: open Netflix / press_key / status via a three-tool local remote plugin.

Plugins

  • None on day one. Follow the first-run steps.

Routines

  • None on the first run. Watch one manual pass first.

The prompt

Own-TV voice remote via official local API (3 tools)

Quoted from @0xCodez — as published. Do not invent a second system prompt.

Last line is our approval fence: Never send, post, spend, or buy without my explicit yes.

This is my own smart TV, my own home Wi-Fi and my own laptop.

I want to control my TV by voice through Grok Bot: I say "Hey Grok, open Netflix" and the TV opens the Netflix home screen and browses it on command ("go right", "scroll down", "open this one").

I'll press Allow on the TV myself and approve every connection.

I authorize you to set up the laptop side, talk to the TV through its official local remote-control API, install what's needed and make the changes below. Every change must be reversible.

I've attached a photo of the TV's Settings → About screen.

Done means: a small local "TV remote" service runs on this laptop with exactly three tools (open_netflix, press_key, status), Grok Bot can call it, and one voice command opens Netflix on my TV while I watch each step.

When a step doesn't need me, keep going.

→ First, identify my TV from the photo and explain in 5 lines how it can be controlled on my network: which OS it runs (Tizen, webOS or Google TV), which local API it exposes, how pairing works, how apps get launched by ID, and how remote key presses are sent.

If the photo shows a TV without network remote control, tell me plainly, and stop. Never root, flash, sideload or put the TV in developer mode.

→ Install only the official or most widely used library for my TV from official sources (PyPI, Homebrew or official GitHub releases): samsungtvws for Samsung, the SSAP/websocket API for LG webOS, adb for Google TV. Find the TV's IP on my network.

If the connection is blocked, tell me exactly which TV setting to check. On macOS, "No route to host" usually means the terminal needs Local Network access: allow it and retry.

→ Before changing anything, save the TV's current app and input, every setting you'll touch, and the undo commands.

→ Pair with the TV. The first time, wait for me to press Allow on the screen. Save the pairing token to a local file with owner-only permissions.

→ Build tvremote: a tiny MCP server with exactly three tools.

open_netflix: launches the Netflix app by its official app ID and waits for the home screen.

press_key: accepts only UP, DOWN, LEFT, RIGHT, ENTER, BACK, HOME, with a short pause between presses.
status: returns what's on the TV right now.
No shell access, no other apps, no free-form commands.

→ Connect tvremote to Grok Bot as a custom plugin through a Cloudflare Tunnel protected by a secret token. Write a short instruction for the bot: "Open Netflix when I ask, navigate only with press_key, describe what's on screen after each step."

If my Grok Bot plan can't use custom plugins, tell me plainly and fall back to a local wake phrase listener on the laptop instead.

→ Check the TV's state before every action and show me what you're about to send.

→ If Netflix shows "Who's watching?", a sign-in screen or any payment or plan prompt, stop and let me handle it. Never sign in, never pick a profile for me, never change the plan, never buy or rent anything.

→ Never touch the TV's firmware, accounts, network settings, parental controls, smart home automations or any other device on my network.

→ Add a live monitor that prints each command with a timestamp, plus a one-line health check: TV paired, tvremote up, tunnel up, Grok connected.

→ End with a cheat sheet (start, stop, re-pair the TV, revoke the plugin token) and the undo commands.

Never expose anything except those three tools to the internet, never type my passwords or sign in for me, never install apps from pirate sites.

Never send, post, spend, or buy without my explicit yes.

First run

  1. 1Read https://x.com/0xCodez/status/2113270979476545573 and the full prompt reply https://x.com/0xCodez/status/2113270983142359331 (credit @0xCodez; roundup https://x.com/InvestingVault/status/2115575750141059351).
  2. 2Put your smart TV and laptop on the same Wi-Fi; photograph Settings → About.
  3. 3Paste the author's prompt into Claude Code (or equivalent) with the photo — official local remote API only; never root, flash, or sideload.
  4. 4Press Allow on the TV once when pairing; keep the three-tool remote (open_netflix / press_key / status) as the only exposed surface.
  5. 5Connect to Grok Bot and try "open Netflix"; if Who's watching / sign-in / payment appears, you handle it — bot stops.

Approval fence

You press Allow on the TV; bot never signs in, picks profiles, buys, or touches firmware.

What to tweak

Steal the 3-tool scope + Allow-once pairing; stop on profile/pay walls.

Source

Codez @0xCodez · Original post

Not affiliated with xAI. We did not write this prompt. Third-party template terms still apply.

Browse templates

Browse team blueprints

Pro pack

Want the full setup, not just the idea?

Pro packs give you the job text, prompts, schedules and pitfalls for popular use-cases.

See Pro