读取 console 日志
console_readRead captured browser console output and filter by level, keyword, timestamp, or page to troubleshoot errors and trace log sources.
Instructions
读取已捕获的 console 输出,支持按级别、关键字、时间、来源页过滤。适用于排查报错、定位日志来源。
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": "console_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | 级别过滤:log/debug/info/warn/error/trace 等,可传数组 | |
| limit | No | 最多返回条数,默认 200 | |
| since | No | 仅返回该时间戳(epoch ms)之后的条目 | |
| format | No | 输出格式,默认 json | |
| search | No | 文本包含匹配 | |
| targetId | No | 限定某个标签页 | |
| errorsOnly | No | 只要 error 级别与异常 |