Query the League client DOM
lol_dom_queryQuery live League client UI DOM elements with CSS selectors to inspect interface state, verify modals, and find element identifiers safely.
Instructions
Query HTML elements in the active League client Chromium Embedded Framework (CEF) UI DOM using CSS selectors. Use this tool as the primary safe method to inspect live UI elements, verify modal state, or find element identifiers. Do not use lol_eval when a CSS selector query suffices. For arbitrary JavaScript execution or state mutation in the UI page, use lol_eval instead. For capturing visual UI state as an image, use lol_cdp_screenshot instead. Prerequisite: Requires Chrome DevTools Protocol (CDP) enabled via Pengu Loader; check lol_status if connection fails. Note: Pengu Loader is required for CDP tools, but standard LCU REST, WAMP, and game tools work without it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | If true, returns an array of all matching elements; if false (default), returns only the first matching element | |
| props | No | Array of additional DOM element properties or attributes to extract, e.g. ["disabled", "href", "textContent"] | |
| selector | Yes | CSS selector matching target elements, e.g. ".lol-uikit-flat-button" or "#rcp-fe-viewport" |