console_evaluate
Run JavaScript in the page to read application state; on failure, receive detailed exception messages and stack traces.
Instructions
Run a JavaScript expression in the page and return its value. On failure returns the full exception detail (message, 1-based line and column, URL, stack). Use it to read app state; use debugger_evaluate_at_frame instead when you are paused and need a local variable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | JavaScript to evaluate in the page's main frame. | |
| timeout_ms | No | Abandon the evaluation after this long. | |
| await_promise | No | Await the result if the expression returns a promise. |