Get an app's source files
get_app_sourceReturns the source of the app's live deploy as {path: content}, with the deploy id to pass to update_app_files as expected_deploy_id. Large apps return the file list only: ask again with paths for the files you need. Secrets (.env files, env values) are never returned.
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": "get_app_source"
}
}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. | |
| paths | No | Only return these files. Leave out for every file. | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| slug | Yes | ||
| files | Yes | ||
| deploy_id | Yes | ||
| file_list | Yes | ||
| truncated | No |