FleetDeckDocs

Action payload · devices:control

double_tap

Double tap at normalized x/y. Timing and recognition depend on the driver and app.

Payload

json
{
  "type": "double_tap",
  "x": 0.5,
  "y": 0.6
}

Payload fields

typestringrequired

Discriminator that selects the action or content shape.

Allowed:"double_tap"
xnumberrequired

Horizontal position: 0 is the left edge and 1 is the right edge of the current screen.

min 0max 1
Example: 0.5
ynumberrequired

Vertical position: 0 is the top edge and 1 is the bottom edge of the current screen.

min 0max 1
Example: 0.6

Unknown fields are rejected.

View JSON Schema
json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "double_tap"
      ],
      "description": "Discriminator that selects the action or content shape."
    },
    "x": {
      "type": "number",
      "minimum": 0,
      "maximum": 1,
      "description": "Horizontal position: 0 is the left edge and 1 is the right edge of the current screen."
    },
    "y": {
      "type": "number",
      "minimum": 0,
      "maximum": 1,
      "description": "Vertical position: 0 is the top edge and 1 is the bottom edge of the current screen."
    }
  },
  "required": [
    "type",
    "x",
    "y"
  ],
  "additionalProperties": false,
  "description": "Double tap at normalized x/y. Timing and recognition depend on the driver and app.",
  "example": {
    "type": "double_tap",
    "x": 0.5,
    "y": 0.6
  }
}

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

Double tap at normalized x/y. Timing and recognition depend on the driver and 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.