get_console_context
Retrieves browser console logs (errors, warnings, GM_log) to diagnose script runtime errors after reload. Saves full log to .customaise/console-context.json, or returns inline without a file.
Instructions
Get console logs from the browser, including errors, warnings, and userscript GM_log output. Use after reload_tab to check for script runtime errors. WRITES A FILE by default: the full log data goes to .customaise/console-context.json in your workspace and this call returns counts plus the path. Read the file with view_file or grep_search. If you have no filesystem tool, pass output: "inline" to get the whole log in the response and write nothing to disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Filter by log level. Default: all | |
| tabId | No | Tab ID to get logs from. Defaults to the active tab. | |
| output | No | Where the full payload goes. "file" (default) writes it to .customaise/ in your workspace and returns a summary plus the path, which keeps a large payload out of your context window. "inline" writes nothing and returns the whole payload in this response. Use it when you have no filesystem tool to read the file with, such as a chat client. "auto" follows the CUSTOMAISE_MCP_OUTPUT environment variable, falling back to "file". |