browser-console
Capture and stream browser console output by navigating to a specified URL. Execute custom commands, wait for elements, and manage timeouts for precise browser automation tasks.
Instructions
Navigate to a URL and capture console output from the browser with streaming support
Input Schema
Name | Required | Description | Default |
---|---|---|---|
commands | No | Browser commands to execute (e.g., "click .button wait 2s") (optional) | |
stream | No | Whether to stream console output in real-time (default: true) | |
timeout | No | Timeout in milliseconds (default: 30000) | |
url | Yes | The URL to navigate to | |
waitFor | No | CSS selector or text to wait for before capturing console (optional) |
Input Schema (JSON Schema)
{
"properties": {
"commands": {
"description": "Browser commands to execute (e.g., \"click .button wait 2s\") (optional)",
"type": "string"
},
"stream": {
"default": true,
"description": "Whether to stream console output in real-time (default: true)",
"type": "boolean"
},
"timeout": {
"default": 30000,
"description": "Timeout in milliseconds (default: 30000)",
"type": "number"
},
"url": {
"description": "The URL to navigate to",
"type": "string"
},
"waitFor": {
"description": "CSS selector or text to wait for before capturing console (optional)",
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}