Get upload link
get_upload_linkA link for a version of the app: works once, for 30 minutes. The command in the reply packs the source code with git archive and uploads it, with the commit and the repository. The whole code by default, only the changed files with changed_only, or only the package list (package.json and the lockfile) with packages_only.
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_upload_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | The name of the app at Appgarten, when there is no git repository. | |
| 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. | |
| 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. | |
| changed_only | No | Only the changed files since the previous version. Default false. | |
| packages_only | No | Only package.json and the lockfile, not the rest of the code. Default false. |