Wait for an extension log
wait_for_logWait until a Chrome extension logs a message matching a pattern, so you can confirm a reproduced problem or reload produced the expected output. Only new entries logged after the call starts are checked.
Instructions
Wait until a Chrome extension logs a message matching a pattern, such as after asking the user to reproduce a problem or reload the extension. By default, only entries logged after this call starts are considered.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pattern": "<pattern>"
},
"name": "wait_for_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Cursor from a previous result. Defaults to the latest entry, so only new logs match. | |
| levels | No | Console methods to include, like ["error", "warn"]. Defaults to all. | |
| browser | No | Only include logs from this browser, by the name or ID that list_sources shows. | |
| pattern | Yes | Case-insensitive regular expression to match against the message text. | |
| 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. | |
| timeoutSeconds | No | How long to wait. Defaults to 30. |