Skip to content

v0.5.0: live preview vs code, web audit, video capture, Playwright

Latest

Choose a tag to compare

@DmitriyGolub DmitriyGolub released this 14 Oct 20:05
8151443

Look now vs. change the code

Every tool now has exactly one mode, shown to the AI as a label, so it is always clear what touches your files:

Mode What it does
[INSPECT] Reads the scene, changes nothing
[LIVE PREVIEW] Changes the scene in the browser only, lost on reload
[DEBUG VISUAL] Temporary helpers: wireframe, bounding boxes, overlay
[FOR CODE] Output meant to be written into your source
[CONNECTION] Configures the devtools server
  • Change journal: every live-preview change is recorded. pending_changes returns before → after with ready-to-paste code for vanilla Three.js and React Three Fiber, plus where to find each target in your project. revert_changes undoes previews.
  • The AI no longer asks "preview or code?" before every change. "Try it in red" means a preview, "make it red" means a code edit, "keep it" writes the preview into your source.

New

  • web_audit: website health check covering pixel ratio, canvas resize, idle/off-screen rendering, antialias cost, oversized or uncompressed textures, shadows, color space and draw calls, each with a concrete fix
  • capture_frames: smooth frame sequences for videos and promo clips. Time is virtualised, so frames are exactly 1/fps apart even when rendering is slow; returns ffmpeg commands for MP4 and WebM
  • Skills (MCP prompts): inspect-scene, try-look, apply-to-code, web-perf-audit, prepare-video, debug-invisible, playwright-setup
  • Playwright & Puppeteer: threejs-devtools-mcp/playwright with attachDevtools, waitForScene and threeCall for e2e tests; CDP_PORT lets Playwright MCP share the browser; headless mode adds software-WebGL flags for CI
  • Modern Three.js: WebGPURenderer discovery and backend reporting, NodeMaterial/TSL slots, MeshPhysicalMaterial properties (clearcoat, transmission, sheen, iridescence, dispersion…)
  • From the unreleased 0.4.2: batched_mesh_details, clipping_details / set_clipping, draw_call_breakdown, set_postprocessing

Fixes

  • set_animation could target a different mixer than the one listed by animation_details
  • overlay_selected, annotated_screenshot and perf_monitor now report errors as errors
  • Server version is read from package.json

Breaking

  • Requires Node.js 22.18+
  • Tool descriptions and annotations changed; set_* tools are no longer marked destructive

Install

claude mcp add threejs-devtools-mcp -- npx threejs-devtools-mcp

69 tools in total. Docs: tools by mode · Playwright guide