pilot_console
Retrieve browser console messages (log, warn, error) to debug JavaScript errors and inspect application logs. Filter by level or clear the buffer after reading.
Instructions
Retrieve browser console messages (console.log, console.warn, console.error) from a circular buffer. Use when the user wants to debug JavaScript errors, check application logs, inspect warnings, or see what the page is printing to the console.
Parameters:
level: Filter messages by log level — "error" (includes warnings), "warning", "info", or "all" (default: all)
clear: Set to true to clear the buffer after reading (useful for checking new messages after an action)
Returns: Timestamped list of console messages with their log level, or "(no console messages)" if the buffer is empty.
Errors: None — returns empty message if no entries match the filter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Filter by log level | |
| clear | No | Clear the buffer after reading |