diagnostics
Retrieve console messages and network request data from a browser session to debug JavaScript errors and failed network requests.
Instructions
Get diagnostic information from the browser session. Useful for debugging JavaScript errors, failed network requests, etc.
Available types:
"console": Recent console messages (log, warn, error, etc.)
"network": Recent network requests with status codes and timing
"all": Both console and network data
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": {
"session": "<session>"
},
"name": "diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Type of diagnostics to retrieve. Default: all | |
| clear | No | Clear the buffers after reading. Default: false | |
| level | No | Filter console entries by level (only for type: console or all) | |
| limit | No | Maximum number of entries to return per type. Default: 50 | |
| session | Yes | The session name |