读取页面控制台日志
get_consoleFetch recent browser console logs and uncaught exceptions from a page. Use the since timestamp to fetch only newer entries for incremental monitoring.
Instructions
读取页面最近的 console 输出与未捕获异常(client.js 会自动捕获上报)。limit 为返回条数(默认 50);传 since(毫秒时间戳)则只返回该时间之后的日志(增量拉取),返回末尾会附上最新一条的 ts,可作为下次调用的 since 继续拉取,用于区分修改代码前后的日志。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 返回最近多少条,默认 50 | |
| since | No | 只返回该毫秒时间戳之后的日志(增量拉取,配合返回值末尾的 ts 使用) | |
| pageId | No | 目标页面 id(单页时可省略) |