get_logs
Retrieve recent Android or iOS simulator logs with filters for app, pid, tag, level, and time, returning structured device metadata and logs for AI analysis.
Instructions
Get recent logs from Android or iOS simulator. Returns device metadata and structured logs suitable for AI consumption. Returns evidence metadata with acquisition intervals and conservative freshness. Optional actionRef links a known same-session/device action; unavailable references collect independently. Device log times are not comparable with host dispatch times.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | Filter by process id | |
| tag | No | Filter by tag (Android) or subsystem/category (iOS) | |
| appId | No | Filter by Android package name or iOS bundle id | |
| level | No | Log level filter (VERBOSE, DEBUG, INFO, WARN, ERROR) | |
| limit | No | Override default number of returned lines | |
| lines | No | Legacy - number of log lines (android only) | |
| contains | No | Substring to match in log message | |
| deviceId | No | Device UDID (iOS) or Serial (Android). Defaults to booted/connected. | |
| platform | Yes | ||
| actionRef | No | ||
| since_seconds | No | Only return logs from the last N seconds |