deploy_frontend
Start a frontend deploy: creates a deployment and returns a presigned upload for the zipped BUILD OUTPUT, plus a ready-to-run curl command. Requires a site (set_site).
Steps: (1) build the app (e.g. npm run build); (2) zip the CONTENTS of the output folder so index.html is at the zip root: cd dist && zip -r ../site.zip .; (3) run the returned curl command from the folder holding site.zip within 15 minutes; (4) call finalize_frontend_deployment; (5) poll list_frontend_deployments until status is 'ready' or 'failed'.
Limits: 50MB zip, 2,000 files, 10MB per file, static file types only (html/css/js/json/images/fonts/media/wasm/pdf...). .env files and server code are refused, and a failure message lists every rejected path. AALY writes /aaly-config.json into every deploy (replacing any copy in the build) with the project's apiBaseUrl and auth settings, so the app can fetch('/aaly-config.json') at startup instead of baking the API URL into the build.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "deploy_frontend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | Get it from whoami or list_projects. |