Skip to main content
Glama

dosbox_capture_screen

Capture the exact current DOSBox-X frame and save it as PNG/RGB plus an optional data-segment dump, making the same instant replayable as a fixture.

Instructions

Capture the current frame exactly and save it: .rgb (one byte per pixel), .png, and with with_segment also _ds.bin, the data segment from the same instant -- which is what makes a captured frame replayable as a fixture.

source='vram' reads the frame out of the emulator's video memory, which is exact, cheap, cannot catch a half-drawn frame and does not slow the guest. source='window' photographs the window instead, resizing it to an integer multiple of the guest resolution; that is the one visible effect this server has on the desktop, and it costs the guest real time. 'auto' takes video memory when the page has been CONFIRMED against a reference and falls back to the window otherwise, so it never quietly saves the wrong 64,000 bytes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pidNo
stemYesOutput path without a suffix; relative to DOSBOX_MCP_OUTPUT_DIR.
exactNoRequire every pixel to be a palette colour.
scaleNoWindow scale to capture at, for source='window'.
sourceNoauto
referenceNoPath to a 64,000-byte frame on screen now; confirms a vram capture.
with_segmentNoAlso dump the data segment from the same instant.
settle_secondsNoWait for the window to finish resizing.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

The description goes well beyond annotations by disclosing writes to multiple files, vram vs window behavior, the desktop-visible resize effect, guest slowdown cost, and the auto source's confirmation fallback. This substantially enriches the sparse readOnly/destructive hints without contradicting them.

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

Conciseness5/5

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

The wording is dense but every sentence earns its place; the most important action is front-loaded, and the source-mode explanation is directly tied to real behavioral tradeoffs. Minor awkwardness around 'with with_segment' does not undermine actual clarity.

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

Completeness4/5

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

The description is complete for frame capture, source selection, output artifacts, and side effects, and an output schema exists for return values. It could be even more complete with an explicit note about when the optional pid would be needed and how capture differs from segment-only dumping, but nothing essential for calling it correctly is missing.

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 75%, and the description adds real meaning beyond the schema, especially for source, where it explains exactly what each enum value means and how auto avoids saving incorrect data. It also clarifies with_segment and output naming. It does not explain pid, but that is optional and less central.

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

Purpose5/5

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

The first sentence states a specific action ('Capture the current frame exactly and save it'), identifies the resource (the current frame), and lists the concrete output artifacts. The mention of a replayable fixture makes the tool's role distinct from view-only or memory-read tools.

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

Usage Guidelines3/5

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

The description gives strong within-tool source guidance: when to use vram, window, or auto. However, it does not explicitly say when to choose this tool over siblings such as dosbox_view_screen or dosbox_record, so an agent must infer the boundary between capturing a saveable frame and other observation workflows.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/md0-code/dosbox-x-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server