Publish app
publish_appPublish the app to a public URL. Only when the human asks: it spends credits and changes a public site. Run publish_readiness first. Returns immediately while it builds; poll get_deployment until LIVE or FAILED, and only say it is live once it is LIVE. Omit slug for an app that is already published (a new slug moves it to a second address). A frontend + API app publishes as a site plus one backend per server service; the site routes /api to the backend. If it answers db_changes_need_confirm, show the human what live data would be deleted and pass dbConfirmToken as confirm_db_changes only after they agree.
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": "publish_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Subdomain (lowercase, digits, dashes). Omit to keep the current one, or derive it from the project name. | |
| project_id | No | Project id (or use session from use_project) | |
| confirm_db_changes | No | Only after the human approves: the dbConfirmToken from a db_changes_need_confirm error, which lists the live data this publish would delete. |