Screenshot a Roblox window
screenshot-windowCapture a Roblox window on the server as a PNG image and retrieve its file path and dimensions. Specify the window by process ID or title substring, or let it auto-detect the single open window.
Instructions
Capture an OS screenshot of a Roblox window on the SERVER host and save it as a PNG, returning the saved file path and the captured width/height. Windows-only: locates the RobloxPlayerBeta window by processId or by a windowTitle substring (the single Roblox window if neither is given), reads its rectangle via the user32 GetWindowRect API, and copies the pixels with System.Drawing.CopyFromScreen. Provide savePath to choose the output file, otherwise a PNG is written to the system temp directory. Use list-roblox-windows first when several windows are open. Returns { savedPath, width, height }. Signature: { windowTitle: string?, processId: number?, savePath: string? }. Phase: observe; cost=low; idempotency=read-only. Requires: resolved-target. Produces: structured-result. Safety: read-only. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| savePath | No | Destination .png path. Defaults to a file in the system temp directory. | |
| processId | No | Exact process id of the target Roblox window. | |
| windowTitle | No | Case-insensitive substring of the target window's title. |