browser_console_logs
Get all console messages (errors, warnings, logs) captured during the session.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
sessionId | string | Yes | Session ID from browser_navigate |
level | string | No | Filter by all, error, warning, log, or exception |
limit | number | No | Maximum number of entries to return |
caption | string | No | Short reason for checking console evidence |
Example
Show me any console errors on this pageResponse
Returns all console messages captured since the session started:
- Errors — JavaScript exceptions, failed assertions
- Warnings — deprecation notices, potential issues
- Logs —
console.log()output
Notes
- Console messages are captured from the moment the session is created
- Response text includes current URL, session ID, filter, limit, and result count so agent transcripts show what was checked
- Includes messages from page scripts, third-party scripts, and browser warnings
- Essential for debugging JavaScript errors without opening DevTools