Console Messages
console_messagesRead a tab's console output—logs, uncaught exceptions, blocked requests, and CSP violations—before the action you want to observe; pass a tab ID because no history is stored.
Instructions
Read the console output of a tab: console.log and friends, uncaught exceptions, and the browser's own messages (blocked requests, CSP violations). Newest last. Needs the DevTools engine. Capture starts the first time any CDP tool touches this tab, and CDP has no history to read back, so nothing from before that is here. Call this tool (or cdp_status then any CDP tool) before the action you want to observe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Empty this tab's console buffer after reading, so the next call shows only what is new | |
| level | No | Only entries of this level | all |
| limit | No | Newest entries to return, at most 500 | |
| tab_id | No | Arc tab id from list_tabs. Omit to use the tab you opened last. Unlike other read tools this never falls back to the tab the user is looking at: with no id and no tab of yours it is refused, so pass this or call open_url first. |