add_phone
Add another phone to a screenshot card in the open editor. It uses the platform set's device frame and starts next to the main phone with its size, rotation, and shadow. Set imageUrl to an image URL (upload_image with type screenshot). Extra phones paint above the main phone, in the order they were added. Returns phoneId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imageX | No | Phone center, in pixels from the card center on the 500px-tall card. | |
| imageY | No | Phone center, in pixels from the card center on the 500px-tall card. Positive moves down. | |
| deviceId | No | This phone's own device, any set_device id. Empty string follows the platform set's device. | |
| imageUrl | No | ||
| rotationX | No | Tilt in degrees (top away from the viewer). 3D frames only. | |
| rotationY | No | Turn in degrees (right side away from the viewer). 3D frames only. | |
| rotationZ | No | The phone's rotation in degrees, on every frame (with no tilt it is a flat rotation). | |
| foldAmount | No | Foldable devices and laptops only. iphone-duo: 0 is open flat, 1 is closed; imageUrl shows on the inner display. MacBooks (macbook-*): the lid, opening = 120 x (1 - foldAmount) degrees (0 fully open, 0.083 is 110°, 1 closed). A laptop's display stays facing the viewer and its base swings about the hinge, so rotationX below 0 tips the top toward the viewer and shows the keyboard. | |
| imageScale | No | ||
| phoneColor | No | This phone's own generic color (black, white, orange, silver, space-gray, blue, purple, red, green). Empty string follows the platform set's color. | |
| shadowBlur | No | ||
| shadowColor | No | ||
| screenshotId | Yes | ||
| imageRotation | No | Old name of rotationZ; it sets rotationZ. | |
| outerImageUrl | No | Foldable devices (iphone-duo) only: the outer display's image URL (shows when folded). Empty string clears it. | |
| shadowEnabled | No | ||
| shadowOffsetX | No | ||
| shadowOffsetY | No | ||
| bottomFadeColor | No | Ignored. The fade always goes to transparent, so whatever is behind the phone shows through. | |
| bottomFadeHeight | No | ||
| deviceModelColor | No | HyperRealistic (threeDFrame): this phone's own real finish, a deviceColors id of its device. Empty string clears it. | |
| bottomFadeEnabled | No | ||
| bottomFadePosition | No | ||
| focusOverlayCropTop | No | ||
| focusOverlayEnabled | No | ||
| focusOverlayOffsetY | No | Vertical offset of the focus overlay, as a percent of its height. Negative moves it up. Range is -1000 to 1000. | |
| focusOverlayCropBottom | No | ||
| focusOverlayShadowBlur | No | ||
| focusOverlayBorderColor | No | ||
| focusOverlayBorderWidth | No | ||
| focusOverlayShadowColor | No | ||
| focusOverlayBorderRadius | No | ||
| focusOverlayShadowEnabled | No | ||
| focusOverlayShadowOffsetX | No | ||
| focusOverlayShadowOffsetY | No | ||
| focusOverlayBlurBackground | No |