Skip to content

Add policy enforcement for cloud browser sessions #176

@L1AD

Description

@L1AD

This server gives agents control of cloud browser sessions via Stagehand:

  • Session management -- starts cloud browser instances (billable)
  • navigate -- visits arbitrary URLs
  • click_element -- triggers UI actions on any page

Cloud browser sessions are billable. An agent loop starting sessions can generate unexpected costs. Navigation and click tools mean the agent can interact with any website including authenticated sessions.

Suggestion: Consider documenting support for PolicyLayer/Intercept, an open-source MCP proxy that enforces policies on tool calls before execution.

Example policy:

version: "1"
default: allow

tools:
  start:
    rules:
      - rate_limit: 5/hour

  click_element:
    rules:
      - rate_limit: 30/minute

  navigate:
    rules:
      - rate_limit: 20/minute

One line to set up: npx -y @policylayer/intercept init

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions