TV control for AI agents
An AI agent puts a film on the TV, on the right streaming app and in the chosen language, in 25 seconds instead of more than five minutes of key presses.
- Role
- Solo project
- When
- Oct 2026 – present
- Stack
- Go · Java · Kotlin · Node.js · MCP · ADB · HDMI-CEC
It started as a web remote for the two devices in a shared flat, a Samsung TV and an Android TV box. Driving them from an agent key by key was far too slow, and some streaming apps block screenshots, so the agent can’t simply look at the screen.
What I built
- An MCP server with 50 tools that covers both devices, so any agent can control them.
- A Go service that runs on the Android TV, and a key injector in Java that cut the latency of each key press from about 1 second to about 20 ms.
- An accessibility app that reads what’s on screen as text. It reads a Disney+ details page in 0.24 s, so the agent knows where it is without needing a screenshot.
- The Samsung is driven through its WebSocket API, Wake-on-LAN and HDMI-CEC, and the Android TV through ADB over a private network.
- Direct links to each title on each platform come from a streaming catalogue, so the agent opens the film straight away instead of searching through menus.
Result
“Put this film on Disney+ in English” goes from more than five minutes of pressing keys to about 25 seconds, end to end.