console.query
Retrieve recorded browser console logs and uncaught exceptions across navigations, then filter by level, text, regex, or time window and limit returned fields to inspect only relevant entries.
Instructions
Console output and uncaught exceptions, recorded continuously and kept across navigations. Filter by level, text, regex and time window rather than dumping everything. Narrow the response with fields (e.g. ["level","text","at"]) and stack:"none" when you only need to see what was logged.
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.query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | e.g. "error" or ["error","warning"]. | |
| limit | No | ||
| order | No | ||
| regex | No | ||
| since | No | Relative ("5m", "90s") or absolute ISO timestamp. | |
| stack | No | Stack detail per entry. Default "top" (one frame) for console.query, "full" for console.exceptions. | |
| until | No | Upper bound of the time window. | |
| fields | No | Return only these fields, e.g. ["level","text","at"]. Cuts payload dramatically. | |
| offset | No | ||
| search | No | ||
| source | No | ||
| target_id | No | Target handle (tgt_*). Omit for the active page. | |
| browser_id | No | Browser handle (br_*). Omit to use the only running browser, or auto-launch one. | |
| include_exceptions | No |