game_wait_for_log
Blocks until a game log line matches your pattern or the timeout expires, enabling assertion of expected actions in automated tests.
Instructions
Block until a log line matches pattern, or the timeout expires.
This is the assertion primitive for automated tests: fire an action, then wait for the line the game prints when the thing you expected happened.
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": "game_wait_for_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |