console_capture
Capture browser console logs by starting, stopping, retrieving, or clearing output. Filter by log type, set storage limits, and paginate results for efficient monitoring.
Instructions
Capture browser console output (start, stop, get, clear).
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": {
"tabId": "<tabId>",
"action": "<action>"
},
"name": "console_capture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max logs to return (get action) | |
| tabId | Yes | Tab ID | |
| action | Yes | Action to perform | |
| cursor | No | Opaque pagination cursor returned as nextCursor from a prior console_capture get call. | |
| filter | No | Log types to capture. Default: all | |
| maxLogs | No | Max logs to store. Default: 1000 | |
| maxBytes | No | Max total bytes of logs to store. Default: 4194304 (4 MiB) | |
| boundaryMarkers | No | Wrap console-origin text in <oc:console>. Default true; false disables. |