watch_for_pattern
Stream macOS/iOS logs until a specified pattern appears, enabling automated testing by waiting for a specific log message after triggering an action.
Instructions
Stream logs until a pattern is found. Useful for test automation - start an action, then wait for a specific log message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Text or regex pattern to watch for | |
| process | No | Filter by process name | |
| useRegex | No | Treat pattern as regex (default: false) | |
| timeoutSeconds | No | Max seconds to wait (default: 30, max: 60) |