browser-tabs

Enforce strict tab ownership by capturing and reusing targetId across browser sessions.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/mlamla123/openclaw-starter-kit --skill browser-tabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: browser-tabs
Source: https://github.com/mlamla123/openclaw-starter-kit/tree/main/skills/browser-tabs
Command: npx skills add https://github.com/mlamla123/openclaw-starter-kit --skill browser-tabs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Multi-session browser environments risk tabs being hijacked or mixed up, leading to leaked state across sessions.

Core Features & Use Cases

  • Tab ownership: Always capture and reuse targetId to ensure actions apply to the correct tab.
  • New-tab discipline: Open new tabs for work rather than reusing active tabs.
  • Safety clean-up: Close tabs when done to avoid clutter and cross-session leakage.
  • Use Case: When running multiple AI sessions in the same managed browser, this rule prevents one session from interfering with another.

Quick Start

Always open a new tab and reuse the captured targetId for all subsequent browser actions to prevent tab hijacking.

Frequently Asked Questions about browser-tabs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent browser tab hijacking across multiple AI sessions?

Prevent browser tab hijacking by enforcing strict tab ownership in a shared browser, requiring each session to capture and reuse the tab's targetId for all navigation and interaction actions.

What is tab isolation and how does targetId enforce it in multi-session browsing?

Tab isolation separates browsing contexts across sessions by using the targetId identifier. Capturing and reusing targetId ensures that browser actions apply only to the correct tab, preventing cross-session state leakage.

How do I manage browser sessions to avoid cross-session state leakage?

Manage browser sessions to avoid state leakage by opening a new tab for each task, capturing its targetId, reusing that targetId for all subsequent actions, and closing the tab when finished to clean up state.

Does multi-session browser automation require capturing targetId for tab isolation?

Yes, multi-session browser automation requires capturing targetId to enforce tab isolation, ensuring that opening, navigating, and interacting with tabs remains strictly bound to the correct AI session.

What is the best way to handle tab ownership when running parallel AI browser sessions?

The best way to handle tab ownership is maintaining new-tab discipline: always open new tabs for work rather than reusing active ones, and close them upon task completion to guard against cross-session leakage.

Why does one AI session interfere with another's tabs in a shared browser environment?

One AI session interferes with another's tabs because of unmanaged tab ownership in a shared browser. Without capturing and reusing targetId, browser actions inadvertently execute on the active tab of a different session.