readConsoleLogsFromApp
Fetch and monitor console logs from a connected React Native app via WebSocket debugger to streamline debugging and issue tracking.
Instructions
Reads console logs from a connected React Native app through the debugger WebSocket
Input Schema
Name | Required | Description | Default |
---|---|---|---|
app | Yes | The app object as returned by getConnectedApps | |
maxLogs | No | Maximum number of logs to return (default: 100) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"app": {
"additionalProperties": false,
"description": "The app object as returned by getConnectedApps",
"properties": {
"description": {
"description": "The Metro application's bundle ID",
"type": "string"
},
"id": {
"description": "The Metro application ID",
"type": "string"
},
"webSocketDebuggerUrl": {
"description": "The websocket debugger URL for the application",
"type": "string"
}
},
"required": [
"id",
"description",
"webSocketDebuggerUrl"
],
"type": "object"
},
"maxLogs": {
"description": "Maximum number of logs to return (default: 100)",
"type": "number"
}
},
"required": [
"app"
],
"type": "object"
}