game_screenshot
Take a screenshot of the running Godot game and return it as an image (plus its size and the game's client name as JSON). Needs live mode (Pixmith 0.5.1 or later running) and a game started from Godot in debug with the Pixmith Live Link addon enabled (see export_godot). After editing a sprite, ca...
This record as markdown: /tools/pixmith-mcp/game-screenshot.md
What game_screenshot does on Pixmith
AI agents call game_screenshot to retrieve information from Pixmith without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
scale | integer | — | Integer upscale 1-8 for small pixel games (default 1); nearest neighbour, the long side stays within 2048 px. |
timeout_ms | integer | — | How long to wait for the game's frame, in milliseconds (default 3000, at most 10000). |
Parameters from the server's own tool schema.
Why game_screenshot is rated Low
Even though game_screenshot only reads data, uncontrolled read access leaks sensitive information and racks up API costs: an agent caught in a retry loop can make thousands of calls a minute without anyone noticing.
Attacks that exploit this kind of access
The rule that runs game_screenshot safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Pixmith, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For game_screenshot, this is the rule to start with:
game_screenshot is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Pixmith, apply this rule, and every game_screenshot call is checked against it from then on.
Questions about game_screenshot
Take a screenshot of the running Godot game and return it as an image (plus its size and the game's client name as JSON). Needs live mode (Pixmith 0.5.1 or later running) and a game started from Godot in debug with the Pixmith Live Link addon enabled (see export_godot). After editing a sprite, call this to see the result in the game itself: Live Link has already put the new art into the running game. Pixel-art games are small, so scale (integer 1-8, nearest neighbour, long side capped at 2048 px) enlarges the picture. Errors when no such game is running or it does not answer within timeout_ms. It is categorised as a Read tool in the Pixmith MCP Server, which means it retrieves data without modifying state.
game_screenshot accepts 2 parameters: scale, timeout_ms. The full parameter table on this page comes from the server's own tool schema.
Register the Pixmith MCP server in PolicyLayer and add a rule for game_screenshot: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Pixmith. Nothing to install.
game_screenshot is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the game_screenshot rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for game_screenshot. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
game_screenshot is provided by the Pixmith MCP server (pixmith-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Pixmith, and thousands of servers like it.
This server
Across the catalogue