Capture screenshot of the League Client
lol_cdp_screenshotCapture a League Client window or renderer target screenshot via Chrome DevTools Protocol to verify visual rendering, modal layouts, or graphics. Saves image locally when path supplied.
Instructions
Capture a visual screenshot image of the active League Client window or a specific renderer target using Chrome DevTools Protocol (CDP). When to use: When visual rendering, modal layout, or graphic verification is needed. When NOT to use: Do not use for automated state checks or element queries (use lol_dom_query) or API data inspection (use lol_get). Behavior: Safe read of visual pixels from the renderer; writes to local filesystem only when savePath is explicitly supplied. Prerequisite: League client must be running with remote debugging enabled via Pengu Loader; check lol_status if disconnected. (Note: Required for CDP tools only). Returns dual-payload MCP content with a base64 image data block plus structured JSON metadata (format, dimensions, byte length, savedTo path).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Image encoding format: "png" (lossless), "jpeg" (compressed), or "webp" | png |
| quality | No | Image compression quality from 0 to 100; only applicable when format is "jpeg" or "webp" | |
| savePath | No | Optional absolute filesystem path (e.g. "C:/temp/screenshot.png") to save the screenshot on disk | |
| targetId | No | Specific CDP target ID to screenshot (defaults to active main client page; query lol_cdp_targets for options) |