get_console_logs
Fetch browser console logs with filters for level and URL, enabling real-time debugging of runtime errors and warnings.
Instructions
取得瀏覽器 console 輸出(error / warn / log 三個等級)。
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 | 篩選等級:error / warn / log / all(預設 all) | all |
| limit | No | 回傳筆數上限,預設 50 | |
| url_filter | No | 只回傳包含此子字串的 URL 的 log |