async fn drive(
cx: &ToolCtx<'_>,
action: &str,
id: u32,
points: &[(i64, i64)],
of_look: Option<i64>,
details: Value,
act: impl FnOnce(&[(i32, i32)]) -> Result<(), String>,
) -> Result<AgentMuxWindowInfo>Expand description
What every input action does after the gate: bring the window forward and
check every point isn’t covered, run act with the points’ screen
positions, and record the outcome.