pub(crate) async fn handle_ui_screenshot(
__arg0: State<AppState>,
caller: Option<Extension<Caller>>,
__arg2: Json<UiScreenshotRequest>,
) -> impl IntoResponseExpand description
POST /api/v1/ui/screenshot — backs the UIScreenshot MCP tool.
Captures a PNG clipped to the caller’s own pane, writes it to
<mux_data_dir>/tmp/ui-screenshots/<uuid>.png, and returns both the
path (openable via OpenMedia) and the base64 bytes inline.