feat: MCP Browser v3.0 - 42 tools with stealth mode, multi-tab, PDF, cookies, storage, network logs, device emulation

This commit is contained in:
2026-03-27 11:58:52 -03:00
parent c1d716bb84
commit 13f7392555
48 changed files with 1269 additions and 714 deletions
+4 -17
View File
@@ -1,22 +1,9 @@
const browser = require('../browser');
module.exports = async ({ selector, timeout = 15000 }) => {
if (!selector) {
throw new Error('Selector é obrigatório');
}
module.exports = async ({ selector, timeout = 15000, state = 'attached' }) => {
if (!selector) throw new Error('Selector é obrigatório');
await browser.start();
const p = await browser.ensurePage();
const el = await p.waitForSelector(selector, {
timeout,
state: 'attached'
});
return {
success: true,
action: "wait_for_selector",
selector,
found: !!el
};
const el = await p.waitForSelector(selector, { timeout, state });
return { success: true, action: 'wait_for_selector', selector, found: !!el };
};