Here are the submission section details for THE LAST TERMINAL:
Inspiration
Traditional browser AI agents interact with web applications through brute force: taking high-resolution screenshots, parsing complex DOM trees, predicting CSS selectors, and firing simulated mouse clicks. This approach is fragile, slow, and burns tens of thousands of tokens per action.
When WebMCP (Web Model Context Protocol) emerged as a proposed browser standard (navigator.modelContext.registerTool), we realized web applications no longer had to be passive visual interfaces. Websites could directly expose machine-readable capabilities to AI agents.
We wanted to showcase this paradigm shift in a way that was instantly understandable and fun. An escape room was the ultimate sandbox—demanding puzzle reasoning, state prerequisites, data extraction, and tool sequence execution!
What it does
THE LAST TERMINAL is an interactive, browser-based cyberpunk escape room where human players and AI agents collaborate to escape an abandoned digital research facility before the emergency countdown reaches zero.
- 5 Interconnected Subsystems: Surveillance Matrix, Security Terminal, Auxiliary Power Control, Archive Database, and Emergency Exit Override.
- 10 WebMCP Capabilities: Exposes structured capabilities ranging from
inspect_surveillance("CAM-07")andread_log("LOG-2049")torestore_power(["C","A","D","B"])andunlock_exit("7319"). - Dual Execution Engine: Human UI interactions and AI WebMCP tool calls invoke the exact same underlying JavaScript game engine logic.
- Real-Time Agent Feed & Trace: A live terminal logs tool calls in real time, accompanied by a full JSON execution trace inspector for hackathon judges.
- Demo Agent Simulator: Includes a 90-second automated execution mode so anyone can watch an AI agent solve the room step-by-step without needing external API keys.
How we built it
- Core Tech Stack: Next.js 14 (App Router), React 18, TypeScript, and Tailwind CSS.
- WebMCP Integration (
src/lib/webmcp/): Registered 10 structured tools with strict JSON Schemas usingnavigator.modelContext.registerToolimperative API, wrapped in a hydration guard to prevent re-registration during React re-renders. - Unified Game Engine (
src/lib/game/): Built a central state machine (gameEngine.ts) powering both human clicks and agent tool calls. - Web Audio API Synthesizer (
src/lib/audio/sound.ts): Built a zero-external-asset audio generator for terminal typing clicks, success chimes, failure buzzers, and power-up sweeps. - Developer Debug Bar (
?debug=true): Added a secret query parameter mode for instant puzzle completion and state inspection during testing.
Challenges we ran into
- Enforcing Prerequisites Without Crashing: Ensuring that tools like
open_archive()correctly check state prerequisites (power === 'online') and return structured error payloads (PREREQUISITE_NOT_MET) rather than throwing unhandled exceptions. - Graceful Fallback & Polyfilling: WebMCP is an emerging browser feature. We needed to support native
navigator.modelContextwhile building an in-memory tool polyfill and automated simulator for standard browsers. - Zero-Dependency Architecture: Ensuring the entire application ran client-side with zero backend infrastructure, zero paid APIs, and zero external databases while keeping the build Vercel-ready.
Accomplishments that we're proud of
- >90% Token Reduction: Demonstrated how structured WebMCP tool calls eliminate the heavy token overhead of DOM parsing and visual screenshot analysis.
- Zero Paid Dependencies: Built the entire experience to run 100% locally in the browser with zero external infrastructure.
- 100% Test & Build Validation: Achieved a clean Next.js static build and 100% pass rate on our standalone engine test suite (
npm run test:engine).
What we learned
- WebMCP transforms web applications from passive UIs into agentic APIs.
- Human + Agent co-op design patterns—where humans supply visual intuition and agents perform rapid tool inspection—create a powerful collaboration model.
What's next for The Last Terminal
- Multi-Agent Co-Op: Expanding to multi-agent escape rooms where specialized WebMCP agents (e.g. Security Agent, Power Agent) solve puzzles in parallel with human teams.
useWebMCPToolReact Hook: Packaging our WebMCP registration layer into an open-source React hook library for Next.js developers.- Community Puzzle Creator: Allowing developers to construct their own WebMCP escape rooms using custom JSON schemas!
Built With
- antigravity
- vercel
- webmcp