wipeLogs
Clear all browser logs from memory to maintain privacy and optimize performance in browser monitoring applications.
Instructions
Wipe all browser logs from memory
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wipeLogs"
}
}Input 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, }, ], }; }); });