Skip to content

Improve 'browser_evaluate' for async expressions#43

Open
ugulot wants to merge 1 commit into
railsblueprint:mainfrom
ugulot:feat/async_function_for_browser_evaluate_alt
Open

Improve 'browser_evaluate' for async expressions#43
ugulot wants to merge 1 commit into
railsblueprint:mainfrom
ugulot:feat/async_function_for_browser_evaluate_alt

Conversation

@ugulot

@ugulot ugulot commented Mar 28, 2026

Copy link
Copy Markdown

Description

Improve 'browser_evaluate' for async expressions.

Changes to Chrome extension:

  • 'Runtime.evaluate' accepts and forwards 'returnByValue' and 'awaitPromise' parameters.

Changes to UnifiedBackend:

  • Better detection of function expression;
  • Add 'timeout' for async calls.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • Smoke tests pass (npm test)
  • Manual testing performed
  • Tested in MCP client (Claude Desktop, Cursor, etc.)
  • Tested extension in Chrome

Test Configuration:

  • Node version: v24.14.1
  • Chrome version: 146.0.7680.155 (Official Build) (arm64)
  • OS: macOS 26.3.1 (25D2128)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • No corresponding changes to the documentation are required
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Changes to Chrome extension:
* 'Runtime.evaluate' accepts and forwards 'returnByValue' and 'awaitPromise' parameters.

Changes to UnifiedBackend:
* Better detection of function expression;
* Add 'timeout' for async calls.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant