Окружения проекта
list_environmentsThe project's environments — one per branch (or the single cli one),
each with its address and the state of its latest build.
Answers "where is the preview of my branch" and "what is on production
now". `url` is the environment's own address (its host ends with
`-<branch>`); the production branch is ALSO served at the project's
canonical address from `site_status` / `my_projects`. Take addresses
from here, never assemble them.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project": "<project>"
},
"name": "list_environments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | The project: its slug (`my-site`) or id, as listed by `my_projects`. The site address works too (`https://clear-garden-vypm.layero.app` or just `clear-garden-vypm`) — note that the address host is NOT always the slug. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | ||
| next_action | Yes | ||
| environments | Yes |