get_logs
Retrieve and filter console logs from React Native apps via Metro bundler. Use summary mode for quick overviews or fetch specific logs for debugging.
Instructions
Retrieve console logs from connected React Native app. Tip: Use summary=true first for a quick overview (counts by level + last 5 messages), then fetch specific logs as needed.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxLogs | No | Maximum number of logs to return (default: 50) | |
| level | No | Filter by log level (default: all) | all |
| startFromText | No | Start from the first log line containing this text | |
| maxMessageLength | No | Max characters per message (default: 500, set to 0 for unlimited). Tip: Use lower values for overview, higher when debugging specific data structures. | |
| verbose | No | Disable all truncation and return full messages. Tip: Use with lower maxLogs (e.g., 10) to avoid token overload when inspecting large objects. | |
| format | No | Output format: 'text' or 'tonl' (default, compact token-optimized format, ~30-50% smaller) | tonl |
| summary | No | Return summary statistics instead of full logs (count by level + last 5 messages). Use for quick overview. |