wait_until
Run an idempotent command repeatedly until a structured stdout/stderr/JSON condition matches or a timeout/attempt limit is reached, replacing model-side polling loops.
Instructions
Run an idempotent command repeatedly until a structured stdout/stderr/JSON condition matches or a timeout/attempt limit is reached. Replaces model-side polling loops.
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": {
"command": "<command>"
},
"name": "wait_until"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | . | |
| runner | No | default | |
| command | Yes | ||
| deviceId | No | ||
| condition | No | ||
| timeoutMs | No | ||
| deviceName | No | ||
| idempotent | No | ||
| intervalMs | No | ||
| maxAttempts | No | ||
| maxOutputBytes | No | ||
| commandTimeoutMs | No |