Ai agents

environment_preview_create

Open a Preview of an Environment for a branch, such as a pull request's, and start its first deploy.

Open a Preview of an Environment for a branch, such as a pull request’s, and start its first deploy. It uses the Environment’s settings and preview size, within the capacity limit. Returns the Preview and the deploy’s Activity; follow it with activity_wait.

Access Consequential change; requires confirmation
Same as blossom environment:preview:create

Arguments

Argument Type Description
yes boolean true once the person confirms.
id string Environment the Preview copies. Required.
branch string Git branch to deploy. Required.
name string Preview name; derived from the branch by default.
no_deploy boolean Create without starting the first deploy.

Example

{"id":"environment-100","branch":"branch-100"}