Send version to Appgarten
send_versionSends the app's source code to Appgarten as a new version. Appgarten receives it when the customer has said yes to new versions in get_started (send_on_merge in the replies), or with accepted: true for this version. Appgarten reads the version, deletes the code when the check is done, at the latest after 7 days, and never changes anything on the customer's side. .env files, secrets, data, build output, images and node_modules are not read. Above about 2 MB of code, get_upload_link handles the version instead.
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>"
},
"name": "send_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | The name of the app at Appgarten, when there is no git repository. | |
| files | Yes | The app's files. | |
| tests | No | Whether the tests passed for this version: passed, failed or none (the app has no tests). Only information: the version is received either way. | |
| app_id | No | The app's Appgarten ID (app_id) from the file .appgarten in the project. With it, Appgarten knows which app the call is about. Not a secret. | |
| commit | No | The commit the version comes from (git rev-parse HEAD). | |
| deleted | No | Files deleted or moved away since the previous version, as paths. | |
| project | No | The app's name as the customer knows it: the page title or the name in package.json. Not the folder or repository name. | |
| accepted | No | true when the customer has said yes to sending this version (consent_text). Not needed when the customer has said yes to new versions in get_started. | |
| language | No | The language of the reply: nb (Norwegian) or en (English), the same as My account. Default en. For any other language, use en and translate it yourself. | |
| repository | No | The repository you are working in, as the SHA of its first commit (git rev-list --max-parents=0 HEAD | tail -n 1. If git rev-parse --is-shallow-repository says true, run git fetch --unshallow first; if it is still shallow, leave repository out). Not the address. Appgarten finds the app from it. The app is tied to this repository from the first version. |