Get Console Logs
get_console_logsRetrieve buffered console logs since a tab spawned to diagnose misbehaving pages. Use as a first-line check for errors and messages when page behavior is unexpected.
Instructions
Buffered console output since tab spawn. First-line check when page misbehaves.
Ex: get_console_logs('t0') → {"_untrusted":true,"logs":[{"level":"error","text":"..."}]}
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": {
"tab_id": "<tab_id>"
},
"name": "get_console_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_n | No | ||
| tab_id | Yes | ||
| force_refresh | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||