wait_ref
Wait for a specified @eN reference to reach a target state, with optional timeout and session targeting.
Instructions
Wait until an @eN ref reaches a state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | @eN ref from the last snapshot. | |
| lease | No | Optional lease token to present if the target session is leased (0.7.0). Threaded per-call; never read from the server's env. | |
| state | No | visible|hidden|attached|detached | |
| session | No | Optional session name to target (omit for the shared 'default'). On a daemon shared with other agents, pass a UNIQUE name for stateful multi-step work (go→click→fill) so you don't collide on 'default'. | |
| timeout_ms | No | Timeout in ms. |