spawn_play_open
Launch the live Spawn game in a headed browser for the agent to watch and control via screenshots and input, while verifying WebGPU support.
Instructions
Open the live Spawn play URL in a local Chromium (Playwright). Headed by default so you can watch. Use this as the agent's eyes/hands on the game — Spawn is WebGPU/canvas, so screenshot + input beat accessibility trees. Resolves play URL from the variant if omitted. Keep it HEADED: headless Chromium has no WebGPU adapter, so Spawn refuses to start and every screenshot shows its 'One graphics fix away' gate instead of the game. The result reports webgpu:'ok'|'unavailable'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| format | No | jpeg (default) is 7-14x smaller on lit/textured 3D scenes (~1.3MB png vs ~90KB jpeg) and reads the same. Prefer png for flat-shaded or pixel-art worlds, where large uniform areas compress better losslessly, or when you need exact pixels. | jpeg |
| headed | No | Show a real browser window (default true). false = headless, which CANNOT render Spawn (no WebGPU adapter) — only useful for reaching a non-Spawn page. | |
| height | No | ||
| waitMs | No | Settle time after navigation before returning (default 4000) | |
| playUrl | No | Absolute play URL; otherwise resolved from the API | |
| quality | No | JPEG quality 1-100 (ignored for png) | |
| projectDir | No | Absolute path to the Spawn game project. Defaults to SPAWN_PROJECT_DIR or cwd. | |
| screenshot | No | Return an image of the viewport after open |