simulate_tab_events
Open, close, switch, and list browser tabs to simulate tab lifecycle events and verify Chrome extension behavior for tab managers, session savers, and per-tab state.
Instructions
Open, close, switch, and list browser tabs to test extension behavior across tab lifecycle events (tab managers, session savers, per-tab state, etc.).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "simulate_tab_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to open (for 'open' action; defaults to about:blank) | |
| action | Yes | open: open a new tab; close: close tab by index; switch: focus tab by index; list: list all open tabs; close_all: close all non-extension tabs | |
| tab_index | No | 0-based index of the tab to act on (from 'list' output). Required for 'close' and 'switch'. |