Web
AuraScore 83/100

Autonomous Browser Tool Execution and Resiliency Framework

Structure robust browser action tools, resilient selectors, and sandboxing rules for autonomous web agents.

Use this template when developing browser automation tools for agents navigating dynamic web pages. It guarantees resilient DOM interaction, safe execution limits, and anti-fragile recovery.

Template

Role: Principal Web Automation Engineer specializing in autonomous browser agents, resilient DOM interaction, and anti-fragile web tooling.

Context

  • Browser Automation Driver Stack: {{browser_driver_stack}}
  • Target Site Archetypes: {{target_site_archetypes}}
  • DOM Selector Strategy: {{dom_selector_strategy}}
  • Session Concurrency Limit: {{session_concurrency_limit}}
  • Execution Sandbox Level: {{safety_sandbox_level}}
  • Execution Timeout Budget: {{execution_timeout_budget}}

Task

Develop an autonomous browser tool execution framework that empowers LLM agents to reliably navigate, query, interact with, and extract data from dynamic web applications with resilient self-healing selectors and strict sandbox isolation.

Method

  1. Define atomic browser action tools (navigate, click, type, scroll, extract, wait) configured for {{browser_driver_stack}}.
  2. Build resilient locator resolvers implementing {{dom_selector_strategy}} using semantic attributes, accessibility trees, and visual anchor points.
  3. Configure session isolation, ephemeral storage, and script-blocking rules according to {{safety_sandbox_level}}.
  4. Implement adaptive DOM snapshotting that prunes non-interactive nodes to fit within the agent observation window.
  5. Design step-level verification checks that validate state changes before confirming action completion to the agent.
  6. Embed exponential backoff, mutation observer hooks, and retry logic bounded strictly by {{execution_timeout_budget}}.
  7. Structure resource pooling and memory disposal pipelines honoring {{session_concurrency_limit}}.
  8. Define telemetry capture for screenshot diffing, DOM mutations, and action trace logging for auditability.

Constraints

  • MUST enforce strict sandboxing preventing arbitrary remote code execution outside authorized domains in {{target_site_archetypes}}.
  • MUST NOT proceed to sequential browser actions without verifying DOM mutation or network idle states.
  • Tool responses must summarize extracted data concisely rather than returning full raw HTML trees.
  • All automated sessions must automatically terminate when reaching {{execution_timeout_budget}}.

Output format

  1. Browser Tool Definition Catalog (Actions and Signatures)
  2. Resilient DOM Resolution and Tree Pruning Engine
  3. Action Verification and Mutation Handling Matrix
  4. Isolation, Sandboxing, and Resource Governance Rules
  5. Anomaly Detection and Self-Healing Execution Flow

Self-review

  • Verify that selector strategies provide multi-tiered fallbacks (e.g., text, aria, CSS, XPath).
  • Confirm timeout and concurrency controls prevent browser zombie processes.
  • Ensure DOM pruning preserves semantic interaction metadata for accurate LLM reasoning.
AuraScore breakdown
83/100Provisional
Instruction clarity15/15 · Strong

Explicit role, a named task, and discrete steps the model can follow.

Context architecture12/12 · Strong

Background, inputs and variables the model needs before it starts.

Constraint engineering12/12 · Strong

Hard boundaries — what the model must and must not do.

Output specification6/14 · Thin

A named, field-level shape for the response.

Reasoning structure10/10 · Strong

Ordered work items that force analysis before an answer.

Model compatibility10/10 · Strong

Length and structure that travel across frontier models.

Token efficiency5/10 · Thin

Signal density — instruction weight without padding.

Reusability7/7 · Strong

Documented variables so the scaffold adapts to new inputs.

Robustness5/5 · Strong

Quality bar, assumptions and behaviour when inputs are thin.

Observed performance1/5 · Thin

How much real usage the template has behind it.

developers
developers-web
autonomous-agents-workflows
browser-agents
web-scraping
dom-automation