# Test in preview and connect the CLI

Test saved scenes, capture a region or keyframe, inspect audio and enable the local CLI.

Canonical page: https://gameagent.ink/en/docs/preview/
Updated: 2026-11-25

## Save and run a scene

Save the scene, then ask the agent to launch a preview at the target aspect ratio. You can specify a different saved scene while leaving the current one open in the editor. Exercise the controls and compare node state, visuals and console output with the expected behavior.

## Capture regions, keyframes and audio

Preview testing records keyframes and can produce a contact sheet with action markers. In v0.4.3, individual shots, post-action shots and keyframes can all use a selected region. For a pause menu, ask for two screenshots of the timer a few seconds apart after pressing Pause. Open them in chat and use the arrow keys to compare the digits. Capture preview audio when you need to check when a sound effect triggers.

## Connect a local CLI

Under **Settings → General**, enable the project's CLI service. It resumes when the project reopens. The external client requires Node.js 22.20.0 or later. Game Agent v0.4.3 installs `@game-agent/cli@0.1.3` by default. The integration installer supports tools including WorkBuddy and Pi. From the target project directory, run:

```sh
game-agent doctor --json
```

An external agent can use exposed tools or delegate a task that appears in the plugin panel. Approvals and questions for that session are handled in the panel.

## Other tools

Configure MCP services, project commands and workflow dependencies in the panel settings. Web search needs its own service credential. Follow the local requirements shown for the feature, then verify the outcome in the running game.
