CLI command
fleetdeck screenshot
Capture a screenshot and create a private local file.
Usage
bash
fleetdeck screenshot SESSION OUTPUT.pngExample
fleetdeck screenshot session_123 ./phone.pngArguments
| Argument | Required | Description |
|---|---|---|
SESSION | required | An active session with devices:read permission. |
OUTPUT.png | required | Local 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.
