feat: MCP Browser v3.0 - 42 tools with stealth mode, multi-tab, PDF, cookies, storage, network logs, device emulation
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
const browser = require('../browser');
|
||||
|
||||
module.exports = async () => {
|
||||
await browser.start();
|
||||
const tabs = browser.listTabs();
|
||||
const tabsWithTitle = await Promise.all(tabs.map(async (t, i) => {
|
||||
if (!t.isClosed) {
|
||||
try {
|
||||
const p = browser.tabs[i];
|
||||
t.title = await p.title();
|
||||
} catch (e) { t.title = null; }
|
||||
}
|
||||
return t;
|
||||
}));
|
||||
return { success: true, action: 'list_tabs', tabs: tabsWithTitle };
|
||||
};
|
||||
Reference in New Issue
Block a user