Skip to main content
Glama

Screenshot (agent debugging)

fl_screenshot
Read-only

Captures FL Studio's window to a PNG for agent debugging, so you can inspect the plugin window, hint bar, and focus state. Optionally capture the whole screen or an explicit region crop.

Instructions

Capture FL Studio's window to a PNG -- for AGENT DEBUGGING (see the plugin window, the hint bar, focus), not part of the music workflow. Only that window is captured by default; set whole_screen=True to capture the entire display, or region=[x,y,w,h] for an explicit crop.

Returns {ok, target, path, size, width, height}; Read the path to view it. target is "window", "screen" or "region". Files go to ~/.flstudio-mcp/shots/.png and are cleaned up after 7 days. path= accepts only a name or path INSIDE that shots directory (it is resolved and bound there -- the tool never writes elsewhere) and never overwrites an existing file.

Coordinates: region is in LOGICAL points -- the space pyautogui clicks in, NOT image pixels. A retina PNG is 2x bigger than the logical screen (E-0 Q5 measured: logical 1710x1107 -> PNG 3420x2214, factor exactly 2.0 on this display). To convert screenshot pixels to click coordinates: logical = px / (png_width / logical_screen_width) -- measure that ratio per display (pyautogui.size() vs the returned width), never hardcode 2.0. width/height here are PNG pixels.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fl_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoFile NAME or full path inside ~/.flstudio-mcp/shots/ (nothing outside is accepted, existing files are never overwritten); omit for a timestamped default.
regionNoAbsolute crop [x, y, w, h] in LOGICAL points (pyautogui space), e.g. [100, 100, 800, 600]. Overrides the default window capture.
whole_screenNoCapture the whole display instead of the FL Studio window. Off by default so the assistant does not receive unrelated windows.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/non-idempotent; the description adds substantial behavior beyond that: the write location (~/.flstudio-mcp/shots/), 7-day cleanup, that path is resolved and bound inside that directory so the tool never writes elsewhere, and that it never overwrites an existing file. The coordinate-space warning (logical points vs. PNG pixels, measure the ratio per display rather than hardcoding 2.0) is exactly the kind of gotcha annotations cannot carry.

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 purpose and the debugging-not-workflow exclusion, then modes, then return/path details, then coordinates — a sensible order. It is on the long side and repeats the shots-directory/path constraints already present in the schema, and the measured 2.0 example is verbose next to the instruction not to hardcode it.

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?

An output schema exists, yet the description still names the return keys and the target values, and it covers storage, retention, overwrite safety, and coordinate semantics. For a read-only capture tool with three optional parameters, nothing an agent needs in order to call 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 100%, so the baseline is 3; the description earns above that by explaining the logical-points coordinate space and giving an explicit pixel-to-click conversion formula plus a measured retina example. This is real added meaning beyond the schema's terse per-parameter text, though it does not explain the interaction between path and the default timestamped naming beyond what the schema already says.

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?

Opens with a specific verb+resource ("Capture FL Studio's window to a PNG") and immediately scopes it as an agent-debugging utility rather than a music-workflow tool. An agent can distinguish this from the audio/mixer siblings in the catalog without opening the schema.

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

Usage Guidelines5/5

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

Explicitly states when to use it ("for AGENT DEBUGGING (see the plugin window, the hint bar, focus)") and when not to ("not part of the music workflow"). It also names the two alternative capture modes and the condition that selects each: default window capture, whole_screen=True for the full display, region=[x,y,w,h] for an explicit crop.

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

Deploy Server

Other Tools