pub struct AwaitWindow {
pub app: String,
pub timeout_ms: Option<u64>,
}Expand description
Wait until an application’s window is showing, or give up.
The other half of guiding somebody somewhere Arin cannot take them. A mark can say “switch desktops”, and without this nothing knows whether they did, so an agent draws an instruction and carries on as though it were followed.
A request rather than a pushed event because MCP has no way for a server to interrupt a model: a client driven by one could not act on an event until its next call anyway.
It never moves anything. The acting half of the handoff is the user’s.
Fields§
§app: StringThe application to wait for, matched exactly as Focus::app is.
timeout_ms: Option<u64>How long to wait before giving up, in milliseconds.
Absent leaves it to the daemon, which is what a client that has no opinion should send: the useful bound is “about as long as a person takes to find a window”, and the daemon is better placed to know that than a client is.