Screenshot (agent debugging)
fl_screenshotCaptures 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
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File NAME or full path inside ~/.flstudio-mcp/shots/ (nothing outside is accepted, existing files are never overwritten); omit for a timestamped default. | |
| region | No | Absolute crop [x, y, w, h] in LOGICAL points (pyautogui space), e.g. [100, 100, 800, 600]. Overrides the default window capture. | |
| whole_screen | No | Capture the whole display instead of the FL Studio window. Off by default so the assistant does not receive unrelated windows. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||