FleetDeckDocs

CLI command

fleetdeck screenshot

Capture a screenshot and create a private local file.

Usage

bash
fleetdeck screenshot SESSION OUTPUT.png
Example
fleetdeck screenshot session_123 ./phone.png

Arguments

ArgumentRequiredDescription
SESSIONrequiredAn active session with devices:read permission.
OUTPUT.pngrequiredLocal file path that does not already exist. The actual MIME may be JPEG; read mimeType.

Supply FLEETDECK_API_KEY through the environment. See environment configuration.

Behavior

  • The output path is created with mode 0600 and exclusive-create semantics. Existing files are not overwritten.
  • The image MIME may be JPEG or PNG despite the example filename; inspect the returned mimeType.

Output and exit

Writes {path,mimeType} as JSON after the file is saved. Missing image content fails with ACTION_INCOMPLETE.

Example stdout
{
  "path": "./phone.png",
  "mimeType": "image/png"
}

See all exit codes and error recovery.