list_console_messages
List all console messages for the target page since the last navigation.
Instructions
List all console messages for the target page since the last navigation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pageId": "<pageId>"
},
"name": "list_console_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| types | No | Filter messages to only return messages of the specified resource types. When omitted or empty, returns all messages. | |
| pageId | Yes | Targets a specific page by ID. | |
| pageIdx | No | Page number to return (0-based). When omitted, returns the first page. Ignored unless pageSize is set. | |
| pageSize | No | Maximum number of messages to return. When omitted, returns all messages. | |
| serviceWorkerId | No | Filter messages by the service worker ID shown by list_pages (sw-N). | |
| includeStackTraces | No | Set to true to include the stack trace for each message when available. Increases the response size. | |
| includePreservedMessages | No | Set to true to return the preserved messages over the last 3 navigations. |