alethia_eval
Execute JavaScript in the page context to inspect DOM elements, count nodes, read styles, or check localStorage when NLP queries cannot express the needed check.
Instructions
Evaluate a JavaScript expression in the page under test and return the result. Runs in the context of the navigated page, not the Alethia host UI. Use this for queries the NLP compiler cannot express — counting elements, reading computed styles, checking localStorage, or any DOM inspection that needs raw JS.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | JavaScript expression to evaluate in the page context. Example: "document.querySelectorAll('li').length" |