back

Function back 

Source
pub async fn back(
    __arg0: State<Arc<AppState>>,
    headers: HeaderMap,
    __arg2: Json<HistoryReq>,
) -> (StatusCode, Json<ApiResponse<AckData>>)
Expand description

POST /agentmux/browser/back — walk the pane’s history one step back. Routed through CDP (Page.goBack) rather than BrowserPaneManager::go_back to keep the resolver cache honest: the target URL changes after the hop, so we invalidate the cache entry.

Returns ack-ok even when there’s no prior history — CDP is a no-op in that case, and agents should query browser-pane-nav-state events (or eval("location.href")) to confirm what happened.