Update App content
update_app_contentUpdates a claimed static_html_v1 App's editable source and complete static output without AI or a build command. The request is the complete file set, index.html and every wanted asset: 1–16 files, up to 128 KiB new UTF-8 text plus 4 MiB retained source assets. retain_source {path, source_commit_sha} keeps a binary image/font from this App's listed apps//public/ snapshot without sending its bytes. Omitted files are removed from this App's source/output roots. Other .html files are pages at their exact path (about/index.html serves /about/); 404.html is only the not-found page; the route manifest is server-written. Requires a current expected_source_commit_sha. A repeated operation_id with identical input returns the same deployment even after the App's head moves; a repeated operation_id with different input is rejected. Returns a deployment_id; the deployment runs asynchronously and its status is readable by that ID. publish=true applies normal website publication/hosting checks.
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": {
"page_id": "<page_id>",
"expected_source_commit_sha": "<expected_source_commit_sha>",
"operation_id": "<operation_id>",
"files": "<files>"
},
"name": "update_app_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| page_id | Yes | ||
| publish | No | ||
| operation_id | Yes | ||
| organization | No | ||
| expected_source_commit_sha | Yes |