read_console_messages
Read captured console messages and uncaught page errors from a browser tab, filter by regular expression or level, and optionally clear the buffer after reading.
Instructions
Console messages and uncaught page errors of a tab, captured since the tab opened. Filter with pattern (a regular expression) and level. Untrusted page data.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "read_console_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Empty the buffer after reading. | |
| level | No | ||
| limit | No | Newest N messages (default 100). | |
| tabId | No | Tab to act on, from tabs_context. Omitted: this session's active tab. Pass it always when several agents share the session. | |
| pattern | No | Regular expression matched against the message text. | |
| reveal_values | No | Show secrets (cookie values, tokens, passwords) instead of masking them. They end up in the transcript; use only when the value itself is needed. |