dosbox_wait_for
Poll a guest memory field until it meets a condition or the timeout expires, avoiding guesses at sleeps; returns whether the condition was met and the last value, letting callers interpret timeouts.
Instructions
Block until a memory field satisfies a test, or the timeout runs out. Use it to wait for a screen transition, an animation to finish, or a state byte to settle, instead of guessing at sleeps. Returns whether the test was satisfied and the last value seen -- it does not raise on timeout, so a caller can decide what a timeout means.
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": {
"offset": "<offset>"
},
"name": "dosbox_wait_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | ||
| size | No | ||
| any_of | No | ||
| equals | No | ||
| offset | Yes | Data-segment offset or symbol name. | |
| at_most | No | ||
| at_least | No | ||
| not_equals | No | ||
| poll_seconds | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||