clear_captures
Clear captured console logs and network requests from the server's buffers so subsequent get_console_logs or get_network_requests calls return only new activity. Choose which buffers to clear; Chrome and DevTools remain unaffected.
Instructions
Discard the buffers this server holds, so a following get_console_logs / get_network_requests shows only what happens next. Affects this server only: nothing is cleared in Chrome or in the DevTools UI, and capture keeps running — no reconnect or reload is needed. Cannot be undone. Console entries are gone for good, because Console.enable() replays history only at attach time. Cleared network requestIds still resolve in get_network_response_body for as long as Chrome itself holds the body; once Chrome drops it the error says the data was discarded rather than that the id is unknown. Works without a connected tab.
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": "clear_captures"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targets | No | Which buffers to clear. Defaults to both. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cleared | Yes | Entries dropped per target; a target absent from `targets` is absent here |