{"at":"2026-11-23T00:06:55.348Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T00:06:56.120Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found: server/discover"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T00:06:56.271Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T00:06:56.941Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":false}},"instructions":"playproof lets you see and playtest browser games. If the project has a playproof.config.json, its target and scenarios are used by default. After changing a web game's animation, input, layout or performance, run the matching tool and look at the returned images before saying it works: frames for motion, play for flows, monkey for crashes, devices for phone layouts, perf for smoothness. Runs are deterministic, so compare a frames run before and after a change.","protocolVersion":"2025-11-25","serverInfo":{"name":"playproof","title":"playproof","version":"0.3.2"}}}}
{"at":"2026-11-23T00:06:56.941Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T00:06:56.941Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T00:06:56.942Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Film an animation frame by frame"},"description":"Runs the game on a virtual clock, optionally performs steps to trigger something, then films it frame by frame. Returns a contact sheet (tiles with frame number and time, dashed boxes around what moved, a bar per frame of how much changed) and an onion-skin image (the whole motion ghosted into one picture), plus flagged sudden jumps, one-frame flicker and stalls. Runs are deterministic: pass compare = the folder of an earlier run to see exactly what a code change did.","inputSchema":{"properties":{"area":{"description":"CSS selector of the game area (default: the largest canvas)","type":"string"},"compare":{"description":"Output folder of an earlier frames run to compare with","type":"string"},"device":{"description":"Device to emulate: \"iPhone 15\", \"Pixel 8\", \"desktop\" (default) or \"390x844@3 mobile\"","type":"string"},"duration":{"description":"How long to film, e.g. 800ms or 1.5s (default 1s)","type":"string"},"fps":{"description":"Tiles per second on the sheet (default: fit about 24 tiles)","type":"number"},"ready":{"description":"JavaScript expression that is true once the game has loaded","type":"string"},"scenario":{"description":"Name of a scenario in playproof.config.json: supplies steps, duration, zoom and device","type":"string"},"steps":{"description":"Steps separated by \";\". Steps (separate with \";\" or new lines, \"#\" starts a comment line): wait <time> let time pass (virtual time: instant and exact) tap <x,y>|@label tap/click inside the game area (\"50%,80%\" or pixels \"120,300\") press <x,y> <time> long press drag <x,y> <x,y> [time] swipe/drag (default 300ms) key <Key> [time] press a key, e.g. Space, ArrowLeft, a, Enter (held 50ms by default) type <text> type text click <css selector> click a DOM element (menus, HTML buttons) shot [label] take a screenshot for the storyboard film <time> [fps] capture frames while time passes until <js expression> [time] advance time until the expression is truthy (default timeout 5s) js <js expression> evaluate JavaScript in the page and log the result Times: 500, 500ms, 1.5s.","type":"string"},"target":{"description":"URL (e.g. http://localhost:5173), folder (./dist) or HTML file of the game. Optional when playproof.config.json sets it.","type":"string"},"waitFor":{"description":"CSS selector to wait for before starting","type":"string"},"zoom":{"description":"Crop to what moves (\"auto\") or to x,y,w,h in percent of the game area","type":"string"}},"required":[],"type":"object"},"name":"frames","title":"Film an animation frame by frame"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Play a scripted sequence"},"description":"Plays a script of taps, drags, keys and waits on the virtual clock and returns a storyboard of every \"shot\" and \"film\" step. Use \"until <js> <time>\" to wait for game states instead of guessing.","inputSchema":{"properties":{"area":{"description":"CSS selector of the game area (default: the largest canvas)","type":"string"},"device":{"description":"Device to emulate: \"iPhone 15\", \"Pixel 8\", \"desktop\" (default) or \"390x844@3 mobile\"","type":"string"},"ready":{"description":"JavaScript expression that is true once the game has loaded","type":"string"},"scenario":{"description":"Name of a scenario in playproof.config.json: supplies steps, duration, zoom and device","type":"string"},"steps":{"description":"Required unless a scenario gives them. Steps separated by \";\". Steps (separate with \";\" or new lines, \"#\" starts a comment line): wait <time> let time pass (virtual time: instant and exact) tap <x,y>|@label tap/click inside the game area (\"50%,80%\" or pixels \"120,300\") press <x,y> <time> long press drag <x,y> <x,y> [time] swipe/drag (default 300ms) key <Key> [time] press a key, e.g. Space, ArrowLeft, a, Enter (held 50ms by default) type <text> type text click <css selector> click a DOM element (menus, HTML buttons) shot [label] take a screenshot for the storyboard film <time> [fps] capture frames while time passes until <js expression> [time] advance time until the expression is truthy (default timeout 5s) js <js expression> evaluate JavaScript in the page and log the result Times: 500, 500ms, 1.5s.","type":"string"},"target":{"description":"URL (e.g. http://localhost:5173), folder (./dist) or HTML file of the game. Optional when playproof.config.json sets it.","type":"string"},"waitFor":{"description":"CSS selector to wait for before starting","type":"string"}},"required":[],"type":"object"},"name":"play","title":"Play a scripted sequence"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Check every scenario against its baseline"},"description":"Films every scenario in playproof.config.json and compares it with its committed baseline (a snapshot test for motion), then runs monkey and devices. Changed motion is an error with a compare image; update = true accepts the current motion as the new baseline (rewrites files: only when the change is intended).","inputSchema":{"properties":{"only":{"description":"Scenario names and/or monkey, devices, perf","items":{"type":"string"},"type":"array"},"update":{"description":"Accept the current motion as the new baselines","type":"boolean"}},"required":[],"type":"object"},"name":"check","title":"Check every scenario against its baseline"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Hunt for crashes with random play"},"description":"Random taps, drags, keys and backgrounding, repeatable by seed. Reports uncaught errors, failed requests, hangs, soft-locks and a render loop that stops, each with a command that reproduces it.","inputSchema":{"properties":{"actions":{"description":"Number of random actions (default 300)","type":"number"},"area":{"description":"CSS selector of the game area (default: the largest canvas)","type":"string"},"device":{"description":"Device to emulate: \"iPhone 15\", \"Pixel 8\", \"desktop\" (default) or \"390x844@3 mobile\"","type":"string"},"ready":{"description":"JavaScript expression that is true once the game has loaded","type":"string"},"scenario":{"description":"Name of a scenario in playproof.config.json: supplies steps, duration, zoom and device","type":"string"},"seed":{"description":"Random seed (default 1); the same seed replays the same actions","type":"number"},"target":{"description":"URL (e.g. http://localhost:5173), folder (./dist) or HTML file of the game. Optional when playproof.config.json sets it.","type":"string"},"waitFor":{"description":"CSS selector to wait for before starting","type":"string"}},"required":[],"type":"object"},"name":"monkey","title":"Hunt for crashes with random play"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Check phones, tablet and desktop"},"description":"Loads the game on nine screens and returns them side by side, with layout findings: blurry or stretched canvas, canvas cut off, page scrolling, missing viewport meta, missing touch-action, clipped text, small touch targets.","inputSchema":{"properties":{"area":{"description":"CSS selector of the game area (default: the largest canvas)","type":"string"},"device":{"description":"Device to emulate: \"iPhone 15\", \"Pixel 8\", \"desktop\" (default) or \"390x844@3 mobile\"","type":"string"},"devices":{"description":"Device names (default: a matrix of nine)","items":{"type":"string"},"type":"array"},"ready":{"description":"JavaScript expression that is true once the game has loaded","type":"string"},"scenario":{"description":"Name of a scenario in playproof.config.json: supplies steps, duration, zoom and device","type":"string"},"steps":{"description":"Run on every device before the screenshot. Steps separated by \";\". Steps (separate with \";\" or new lines, \"#\" starts a comment line): wait <time> let time pass (virtual time: instant and exact) tap <x,y>|@label tap/click inside the game area (\"50%,80%\" or pixels \"120,300\") press <x,y> <time> long press drag <x,y> <x,y> [time] swipe/drag (default 300ms) key <Key> [time] press a key, e.g. Space, ArrowLeft, a, Enter (held 50ms by default) type <text> type text click <css selector> click a DOM element (menus, HTML buttons) shot [label] take a screenshot for the storyboard film <time> [fps] capture frames while time passes until <js expression> [time] advance time until the expression is truthy (default timeout 5s) js <js expression> evaluate JavaScript in the page and log the result Times: 500, 500ms, 1.5s.","type":"string"},"target":{"description":"URL (e.g. http://localhost:5173), folder (./dist) or HTML file of the game. Optional when playproof.config.json sets it.","type":"string"},"waitFor":{"description":"CSS selector to wait for before starting","type":"string"}},"required":[],"type":"object"},"name":"devices","title":"Check phones, tablet and desktop"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Measure frame pacing"},"description":"Measures real frame times (fps, p95/p99, dropped frames at the display's refresh rate, long tasks, heap growth) while the game idles, runs steps, or takes random taps. Locally the CPU is slowed 4x; android = true measures Chrome on a USB-connected Android phone.","inputSchema":{"properties":{"android":{"description":"Measure on a USB-connected Android phone","type":"boolean"},"area":{"description":"CSS selector of the game area (default: the largest canvas)","type":"string"},"cpu":{"description":"CPU slowdown factor for local runs (default 4, 1 = off)","type":"number"},"device":{"description":"Device to emulate: \"iPhone 15\", \"Pixel 8\", \"desktop\" (default) or \"390x844@3 mobile\"","type":"string"},"duration":{"description":"How long to measure (default 10s)","type":"string"},"monkey":{"description":"Tap randomly while measuring","type":"boolean"},"ready":{"description":"JavaScript expression that is true once the game has loaded","type":"string"},"scenario":{"description":"Name of a scenario in playproof.config.json: supplies steps, duration, zoom and device","type":"string"},"steps":{"description":"Steps separated by \";\". Steps (separate with \";\" or new lines, \"#\" starts a comment line): wait <time> let time pass (virtual time: instant and exact) tap <x,y>|@label tap/click inside the game area (\"50%,80%\" or pixels \"120,300\") press <x,y> <time> long press drag <x,y> <x,y> [time] swipe/drag (default 300ms) key <Key> [time] press a key, e.g. Space, ArrowLeft, a, Enter (held 50ms by default) type <text> type text click <css selector> click a DOM element (menus, HTML buttons) shot [label] take a screenshot for the storyboard film <time> [fps] capture frames while time passes until <js expression> [time] advance time until the expression is truthy (default timeout 5s) js <js expression> evaluate JavaScript in the page and log the result Times: 500, 500ms, 1.5s.","type":"string"},"target":{"description":"URL (e.g. http://localhost:5173), folder (./dist) or HTML file of the game. Optional when playproof.config.json sets it.","type":"string"},"waitFor":{"description":"CSS selector to wait for before starting","type":"string"}},"required":[],"type":"object"},"name":"perf","title":"Measure frame pacing"}]}}}
