MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / clearBuffers

Function clearBuffers

src/tools/browser/session.ts:164–168  ·  view source on GitHub ↗
(s: BrowserSession)

Source from the content-addressed store, hash-verified

162
163/** Clear the per-page buffers. Called automatically on browser_navigate. */
164export function clearBuffers(s: BrowserSession): void {
165 s.consoleBuffer.length = 0;
166 s.requestBuffer.length = 0;
167 s.errorBuffer.length = 0;
168}
169
170/** Close the browser. Idempotent. When ATTACHED to the user's own browser we drop the
171 * connection WITHOUT closing it — killing someone's logged-in Chrome would be hostile. */

Callers 1

executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected