MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / accessibility_tree

Function accessibility_tree

packages/server/src/api/routes.rs:3295–3310  ·  view source on GitHub ↗
(
    State(state): State<AppState>,
    Path(udid): Path<String>,
    Query(query): Query<AccessibilityTreeQuery>,
)

Source from the content-addressed store, hash-verified

3293}
3294
3295async fn accessibility_tree(
3296 State(state): State<AppState>,
3297 Path(udid): Path<String>,
3298 Query(query): Query<AccessibilityTreeQuery>,
3299) -> Result<Json<Value>, AppError> {
3300 let snapshot = cached_accessibility_tree_value(
3301 state,
3302 udid,
3303 query.source.as_deref(),
3304 query.max_depth,
3305 query.include_hidden.unwrap_or(false),
3306 query.interactive_only.unwrap_or(false),
3307 )
3308 .await?;
3309 Ok(json(snapshot))
3310}
3311
3312async fn cached_accessibility_tree_value(
3313 state: AppState,

Callers

nothing calls this directly

Calls 2

jsonFunction · 0.85

Tested by

no test coverage detected