get_app_logs
Read console output from an app launched with captureLogs enabled, filter log lines by case-insensitive regex, limit returned lines, and optionally clear the buffer after reading.
Instructions
Read console output captured from an app started with launch_app captureLogs=true. os_log/Logger lines look like <timestamp> App[pid:tid] [category] message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | Case-insensitive regex; only matching lines are returned (e.g. a category like "\[network\]") | |
| clear | No | Clear the buffer after reading | |
| lines | No | Last N matching lines (default 200) | |
| device | No | Device UDID or name substring. Defaults to the select_device choice, then IOS_DEVICE_MCP_DEVICE, else the single USB-connected device. | |
| bundleId | Yes |