get_js_logs
Capture JavaScript console logs (log/warn/error) from a running React Native app via Metro CDP, with optional level, regex, and duration filters for debugging.
Instructions
Capture JavaScript console output (console.log/warn/error) from the running React Native app via Metro CDP
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_js_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Filter by log level (default: all) | |
| filter | No | Regex pattern to filter log entries | |
| duration | No | Seconds to listen for logs (default: 5, max: 30) |