Get Console Logs
get_console_logsRetrieve and filter browser console logs for debugging purposes. Monitors Chrome targets and returns specified log types with configurable line limits.
Instructions
Get console logs from a browser target. Starts monitoring on first call.
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_console_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targetIndex | No | Target index from list_targets | |
| maxLines | No | Maximum lines to return | |
| filter | No | Filter by log type | all |
| port | No | Chrome CDP port |