Skip to main content
Glama

Screenshot / Camera

screenshot-camera

Capture a PNG image from a specific Camera3D or Camera2D in the edited scene for direct LLM inspection, rendering off-screen so the editor camera stays untouched.

Instructions

Capture a screenshot from a specific Camera3D (or Camera2D) in the edited scene and return it as a PNG image for direct LLM inspection. Identify the camera with 'nodeRef' (instanceId preferred, else a scene-tree path). The camera's own world is rendered into a temporary off-screen SubViewport at the requested 'width'x'height', so the editor's live selection/camera is left untouched. Output edges are capped to keep the response transportable. NOTE: rendering needs a real GPU — a Godot launched with '--headless' yields an empty image, surfaced here as a structured error rather than a blank PNG. The image otherwise exists only in this conversation: when the user wants the picture as a file, pass 'savePath' and the PNG is also written inside the project (the result states 'Saved to ').

Argument types — give these arguments as RQL values (as in rql-mutate): {key: value, …}, [a, b], "text", 1.5, true, ref("Node3D#12") from a query result, godot.find("Name"); leave out keys you do not need: NodeRef — a node: ref("Node3D#12") from a query, godot.find("Name"), an instance id, or its path below the scene root as text ("Level/Player")

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "nodeRef": "<nodeRef>"
    },
    "name": "screenshot-camera"
  }
}

Input Schema

NameRequiredDescriptionDefault
widthNoOutput width in pixels. Default 1920. Must be > 0 and within the dimension cap.
heightNoOutput height in pixels. Default 1080. Must be > 0 and within the dimension cap.
nodeRefYesReference to the camera Node (Camera3D or Camera2D) to capture from (instanceId preferred, else scene-tree path). RQL: NodeRef
savePathNoOptional file to also write the PNG to when the user wants the picture as a file, inside the project: 'res://Screenshots/shot.png', 'Screenshots/shot.png' (relative to the project root) or an absolute path under it. Missing folders are created and .png is added when there is no extension. Refused: anything outside the project, user://, res://.godot/, this addon's folder, another extension, an existing file (it never overwrites). The image is still returned. Godot imports the PNG, so a .import file appears beside it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.38.0
    • addedInput schema / properties / savePath
      Added value: +{
      +  "description": "Optional file to also write the PNG to when the user wants the picture as a file, inside the project: 'res://Screenshots/shot.png', 'Screenshots/shot.png' (relative to the project root) or an absolute path under it. Missing folders are created and .png is added when there is no extension. Refused: anything outside the project, user://, res://.godot/, this addon's folder, another extension, an existing file (it never overwrites). The image is still returned. Godot imports the PNG, so a .import file appears beside it.",
      +  "type": "string"
      +}
  2. Addedv0.35.1

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Adds substantial behavior beyond the annotations: rendering happens off-screen so the editor's live selection/camera is untouched, output edges are capped, headless GPU-less launches produce a structured error instead of a blank PNG, and savePath never overwrites and refuses paths outside the project. It also explains the side effect that Godot imports the PNG and creates a .import file, which is consistent with readOnlyHint=false.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose and the editor-safety guarantee, then the caveats, then argument typing. It is dense and somewhat long, with mild redundancy: the nodeRef forms are stated in the body, again in the RQL block, and a third time in the schema description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the return contract itself: a PNG image for direct inspection, a 'Saved to <absolute path>' message when savePath is used, and a structured error in headless environments. Combined with the savePath refusal rules, an agent has everything needed to call it correctly and interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuinely non-obvious meaning: arguments must be supplied as RQL values (ref(...), godot.find(...), bare instance id, or path text), which the schema does not convey. The width/height dimension cap is referenced but its numeric value is left unstated.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource+scope: capture a screenshot from a named Camera3D/Camera2D in the edited scene, returned as a PNG. It implicitly separates itself from the viewport sibling by stating the camera's own world is rendered into a temporary off-screen SubViewport, but it never names screenshot-viewport or screenshot-isolated to make the routing explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete when-to-use guidance for the optional path: 'when the user wants the picture as a file, pass savePath', plus the preferred nodeRef form (instanceId first, then scene-tree path). It does not state when an agent should prefer a different screenshot tool instead, so it is clear context without explicit alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.