get_console_logs
Fetch console log entries from the live page, filter by severity level such as error or warn, and control result count to diagnose issues.
Instructions
获取页面控制台日志(MCP 连接后产生的日志)
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": "get_console_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | 日志级别过滤,不传则返回全部 | |
| limit | No | 返回条数上限,默认 50,最大 200 |