Skip to main content

control_call

Function control_call 

Source
async fn control_call<T: Serialize>(
    route: &str,
    body: &T,
    wait: Option<Duration>,
    cx: &ToolCtx<'_>,
) -> Result<Value>
Expand description

POST body to srv’s /api/v1/ui/browser/{route} and read its answer, or fail with what srv said. wait is the time limit for a call that waits for the person; none: the client’s own.