console_messages
Lists browser console output captured since attach so you can debug a page after an action fails or confirm no errors. Filter by level or pattern, and clear between steps.
Instructions
Read-only: list browser console output (console.log/warn/error and uncaught exceptions) captured since agent-in-browser attached to the tab, one line per entry as [time] LEVEL text, oldest first. Use it to debug a page after an action fails or to confirm no errors. Capture starts on attach, so messages printed during an earlier page load are missed: navigate with action=reload first. Use clear to reset between steps. For HTTP traffic use network_requests.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Tab id from tabs_list. Defaults to the current tab. | |
| clear | No | Empty the console buffer after reading so the next call only shows new messages. | |
| level | No | Only entries of this level (error also includes uncaught exceptions). | |
| limit | No | Return only the last N matching entries (default 100). | |
| pattern | No | Regular expression the message text must match. |