evaluate_js
Execute JavaScript expressions in browser context to inspect variables, call functions, and analyze prototypes for reverse engineering purposes.
Instructions
Execute an arbitrary JavaScript expression in the page context and return the result.
This is the most fundamental and powerful tool for reverse engineering. Use it to inspect variables, call functions, check prototypes, etc.
Examples: - evaluate_js("window._token") - evaluate_js("window.encrypt('test')") - evaluate_js("Object.getOwnPropertyNames(XMLHttpRequest.prototype)")
Args: expression: JavaScript expression to evaluate. await_promise: If True, awaits Promise results (default True).
Returns: dict with result value and its JavaScript type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | ||
| await_promise | No |