Get extension logs
get_logsRetrieve and filter Chrome extension console output, including logs from before the current session. Use cursors, time ranges, levels, or search terms to find specific entries.
Instructions
Get console output from Chrome extensions that use the stdout-mcp library, including output from before this session started. Without after, returns the most recent matching entries. With after, returns the entries following that cursor, oldest first. With around, returns the entries before and after that one.
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_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Cursor from a previous result. Only entries after it are returned. | |
| limit | No | Maximum number of entries to return. Defaults to 100, or 21 with `around`. | |
| since | No | Only include entries from this long ago or later, like "30s", "10m" or "2h", or from a local time like "2026-10-20 16:35". | |
| around | No | Entry number to center the results on, such as one found with `search`. Filters apply to the entries around it. | |
| levels | No | Console methods to include, like ["error", "warn"]. Defaults to all. | |
| search | No | Case-insensitive regular expression to match against the message text. | |
| browser | No | Only include logs from this browser, by the name or ID that list_sources shows. | |
| filename | No | Only include logs from pages or scripts whose filename contains this, like "popup". | |
| extension | No | Only include logs from this extension, by ID or exact name. |