Marey

v0.1.0
io.github.anilyesilkaya/marey Checked 4 days ago Published 2 months ago

Give AI agents eyes for motion: see what changed on screen, not just how it looks.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

record

Record the screen for a fixed duration and return a numbered, timestamped contact sheet (a grid of still frames) as an image. Use this to inspect motion: dragging, animations, flashes, reordering, anything that cannot be understood from a single screenshot. Raw frames are also saved to disk.

ParameterTypeDescription
colsnumberThumbnails per contact-sheet row. Overrides the detail preset. Fewer columns = larger, more legible cells.
delaynumberSeconds to wait before recording starts (default 0).
detailstringLegibility preset for the contact sheet (default "overview"). A returned image has a fixed resolution budget split across columns, so fewer/wider cells show more. "overview" = 4 cols @ 480px (many fra…
fpsnumberFrames captured per second (default 2).
regionstringprimary monitor, the full virtual desktop, or a window (default primary). Prefer "window" when a single app is involved: a smaller source means each thumbnail keeps more detail.
secondsnumberRecording duration in seconds (default 5).
thumbWidthnumberThumbnail width in pixels. Overrides the detail preset. Note: has little effect once the sheet exceeds the client's inline-image size cap — reduce cols instead.
titlestringWindow-title substring to match when region is "window".

capture

Capture a single screenshot immediately and return it as an image. Uses the same region-selection semantics as record.

ParameterTypeDescription
delaynumberSeconds to wait before capturing (default 0).
regionstringCapture region (default primary).
titlestringWindow-title substring to match when region is "window".

start_recording

Begin an OPEN-ENDED recording that runs until stop_recording is called. Use this (instead of record) when the USER controls the timing — e.g. they will perform a drag, open a menu, or trigger an animation and you cannot predict how long it takes. Start it on the user's cue, tell them to perform the interaction, then call stop_recording. Only one recording may be active at a time.

ParameterTypeDescription
colsnumberThumbnails per contact-sheet row. Overrides the detail preset.
delaynumberSeconds to wait before capture begins (default 0).
detailstringContact-sheet legibility preset (default "overview"). See record.
fpsnumberFrames captured per second (default 2).
regionstringCapture region (default primary).
thumbWidthnumberThumbnail width in pixels. Overrides the detail preset.
titlestringWindow-title substring to match when region is "window".

stop_recording

Stop the recording started by start_recording and return the contact sheet (plus full-resolution frame paths), exactly like record. Errors if no recording is in progress.

list_windows

List visible windows (title, process, and geometry where available) so a target can be chosen for window capture.

get_frame

Return a single frame from a prior recording at FULL RESOLUTION, as an image. The contact sheet from `record` is a downscaled overview; when it is too small to read fine detail or small text, call this with the recording's directory and the frame number (both are listed in the `record` response), or with a direct frame path. This works over MCP without filesystem access.

ParameterTypeDescription
dirstringRecording directory from a `record` result (its "dir" / "Frames saved under" path).
indexnumber1-based frame number to fetch (e.g. 4 for frame #004). Required when using `dir`.
pathstringDirect path to a frame PNG, as an alternative to dir + index.