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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pattern": "<pattern>"
},
"name": "watch_for_pattern"
}
}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) |