FleetDeckDocs

Action payload · devices:read

inspect

Read UI hierarchy through a native bridge. ADB returns xml and screen {w,h}; WDA returns tree and screen {width,height}. Their hierarchy coordinates are pixels or logical points, not normalized action coordinates. Accessibility coverage varies by app.

Payload

json
{
  "type": "inspect"
}

Payload fields

typestringrequired

Discriminator that selects the action or content shape.

Allowed:"inspect"

Unknown fields are rejected.

View JSON Schema
json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "inspect"
      ],
      "description": "Discriminator that selects the action or content shape."
    }
  },
  "required": [
    "type"
  ],
  "additionalProperties": false,
  "description": "Read UI hierarchy through a native bridge. ADB returns xml and screen {w,h}; WDA returns tree and screen {width,height}. Their hierarchy coordinates are pixels or logical points, not normalized action coordinates. Accessibility coverage varies by app.",
  "example": {
    "type": "inspect"
  }
}

REST wraps this payload inside {requestId, command}. The matching MCP tool takes sessionId and requestId plus these fields, without the type discriminator.

Contract

Submit this as command to POST /sessions/{sessionId}/actions, pass it as the CLI action JSON, or use the matching MCP convenience tool. Command objects are strict and reject unknown fields.

Execution

Read UI hierarchy through a native bridge. ADB returns xml and screen {w,h}; WDA returns tree and screen {width,height}. Their hierarchy coordinates are pixels or logical points, not normalized action coordinates. Accessibility coverage varies by app.

Action status and driver result remain separate. A completed result can still require a fresh screenshot or hierarchy check to prove the intended visible effect.