Skip to content

rod_evaluate always returns <nil> for all scripts #23

Description

@aliwatters

Bug Description

rod_evaluate always returns <nil> regardless of the JavaScript expression passed in. This makes it impossible to extract data from pages programmatically.

Steps to Reproduce

  1. Start rod-mcp-gui (visible browser mode)
  2. Navigate to any page
  3. Run rod_evaluate with any JavaScript expression

Examples tried:

rod_evaluate("document.title")           → <nil>
rod_evaluate("1 + 1")                    → <nil>
rod_evaluate("JSON.stringify({a: 1})")   → <nil>
rod_evaluate("document.querySelector('h1')?.textContent") → <nil>

All return <nil> instead of the expected value.

Expected Behavior

rod_evaluate should return the result of the JavaScript expression. For example:

  • document.title → the page title string
  • 1 + 12

Environment

  • rod-mcp-gui (visible browser mode)
  • macOS
  • Tested via router-mcp promote_server

Impact

Without working rod_evaluate, there's no way to programmatically extract data from pages — users must rely on rod_snapshot (which truncates long pages) or rod_screenshot (visual only, no data extraction).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions