Скачать исходники деплоя
download_sourceA short download link to a ZIP of what a build was made from.
For an upload (`npx layero@latest deploy`) the ZIP holds the uploaded
sources; for a site published with `publish_site` — the published files.
`.env*` files are left out. Needs a member who can deploy (editor role).
The link works for 5 minutes: hand it to the person, do not fetch it
yourself unless they asked you to work with the files.
A build made from a repository has no stored sources — you get the commit
link instead. Old uploads may be gone: the platform keeps sources 7 days,
and the live build while it is live.
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": "download_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deploy | No | id of the build (from list_deploys). Without it — the build served on the project address. | |
| 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 |
|---|---|---|---|
| url | No | ||
| project | Yes | ||
| filename | No | ||
| deploy_id | Yes | ||
| commit_url | No | ||
| expires_in | No | ||
| next_action | Yes |