wipeLogs
Clear all browser logs from memory to maintain privacy and optimize performance in browser monitoring applications.
Instructions
Wipe all browser logs from memory
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- browser-tools-mcp/mcp-server.ts:322-340 (registration)MCP tool registration and inline handler for 'wipeLogs'. Proxies a POST request to the browser connector server's /wipelogs endpoint to wipe logs and returns the server's message.server.tool("wipeLogs", "Wipe all browser logs from memory", async () => { return await withServerConnection(async () => { const response = await fetch( `http://${discoveredHost}:${discoveredPort}/wipelogs`, { method: "POST", } ); const json = await response.json(); return { content: [ { type: "text", text: json.message, }, ], }; }); });
- browser-tools-mcp/mcp-server.ts:322-340 (handler)The handler function for the wipeLogs tool, which calls the browser server's wipe logs endpoint.server.tool("wipeLogs", "Wipe all browser logs from memory", async () => { return await withServerConnection(async () => { const response = await fetch( `http://${discoveredHost}:${discoveredPort}/wipelogs`, { method: "POST", } ); const json = await response.json(); return { content: [ { type: "text", text: json.message, }, ], }; }); });