capture_console
Capture console output from a webpage by providing a URL, optional JavaScript command, and wait duration. Monitor and retrieve all console messages for debugging or analysis.
Instructions
Capture console output from a web page. Accepts a URL, optional JS command to run, and duration to wait (default 4 seconds). Returns all console messages during that time.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
duration | No | Duration to capture console output in seconds | |
jsCommand | No | Optional JavaScript command to execute on the page | |
url | Yes | HTTP/HTTPS URL to capture console from | |
waitUntil | No | Wait until event: load, domcontentloaded, networkidle0, networkidle2 | domcontentloaded |
Input Schema (JSON Schema)
{
"properties": {
"duration": {
"default": 4,
"description": "Duration to capture console output in seconds",
"type": "number"
},
"jsCommand": {
"description": "Optional JavaScript command to execute on the page",
"type": "string"
},
"url": {
"description": "HTTP/HTTPS URL to capture console from",
"type": "string"
},
"waitUntil": {
"default": "domcontentloaded",
"description": "Wait until event: load, domcontentloaded, networkidle0, networkidle2",
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}