browser_logs
Read buffered console, network, and navigation logs from an attached browser tab to inspect errors and requests, filter evidence, and page through retained events.
Instructions
Read buffered console, network or navigation evidence since claim, even if the page is blank. For API discovery use network view=requests with resource_types=["XHR","Fetch"]; summaries correlate retained events by session/request/hop without bodies. Use view=events and that identity for details. Filters affect reads only. Continue next_seq for the same kind/view/filters; restart at 0 when changing them. data_loss means evicted evidence cannot be recovered.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tab_handle": "<tab_handle>",
"kind": "<kind>"
},
"name": "browser_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hop | No | ||
| kind | Yes | ||
| view | No | Network only; default events. Requests view returns one compact summary per request, updated when later events arrive; incomplete retained history is possible. | |
| event | No | Network events view only. | |
| level | No | Only valid for kind=console. | |
| limit | No | ||
| method | No | Network only: case-insensitive HTTP method. | |
| status | No | Network only: exact HTTP response status; events without status do not match. | |
| capture | No | Network only: opt in before XHR/fetch for bounded headers/bodies, with credential headers and named secrets redacted; unavailable bodies are explicit. | |
| after_seq | No | ||
| max_chars | No | ||
| request_id | No | ||
| session_id | No | Network identity; null selects the main debugger session. | |
| tab_handle | Yes | ||
| url_origin | No | Network only: exact HTTP(S) origin, e.g. https://jobs.example.com. | |
| url_contains | No | Only valid for kind=network. | |
| resource_types | No | Network only: exact CDP types, e.g. ["XHR","Fetch"]. |