Change some of an app's files
update_app_filesRedeploys the app with a few files changed: files maps each path to its new content, or to null to delete it. Every other file stays as it is. expected_deploy_id must be the app's live deploy (from get_app_source or the last deploy result); if someone deployed in between, nothing changes and you are told to read the source again. Builds and type checks like deploy_app.
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": {
"files": "<files>",
"expected_deploy_id": "<expected_deploy_id>"
},
"name": "update_app_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | The app's slug: the first label of its address (my-app for https://my-app.fuast.com). list_apps shows the slugs you can use. | |
| files | Yes | Changes as {"path": "new content"} to write a file, {"path": null} to delete it. | |
| edit_token | No | The edit_token deploy_app returned when it deployed a preview without an account. It is a secret: keep it in this conversation only. | |
| delete_tables | No | Only when a deploy was refused because the new schema drops tables that hold rows: repeat each table with the exact row count from that error to confirm deleting it. | |
| expected_deploy_id | Yes | The deploy id your change is based on. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| name | No | ||
| slug | Yes | ||
| limits | No | ||
| created | No | ||
| manifest | No | ||
| claim_url | No | ||
| deploy_id | Yes | ||
| trust_url | No | ||
| unclaimed | Yes | ||
| edit_token | No | ||
| expires_at | No | ||
| next_steps | Yes | ||
| restricted | No | ||
| visibility | No | ||
| preview_url | No | ||
| trust_command | No | ||
| restricted_hint | No |