Update app permissions
update_app_permissionsTurn app permissions on or off and set their texts in the current version's draft, like the dashboard's App Permissions screen. Permissions left out stay as they are. camera (taking photos or scanning on the site) and photo_library (uploading photos) apply to iOS and Android and are always on; only their texts can change. microphone (calls, voice) and location (store locators, maps, delivery) apply to iOS and Android. app_tracking_transparency is Apple's iOS prompt for tracking users across other companies' apps and sites, e.g. for ads. read_external_storage is Android only (reading files on the device) and takes no texts. Some features add permissions at build time with no switch here: barcode scanner adds camera, media player adds background audio (iOS) and wake lock and foreground service (Android), in-app purchase adds Android billing, push adds iOS background modes. Asked whether the app needs any permissions: read get_app, then check the merchant's website and the app's Twinr features for anything that needs one; if you can't open the website, ask the merchant what the app does. Recommend, and change only after the merchant's yes. After a store rejection over a permission, ask for the rejection text, write a message saying why this app needs that permission, show the merchant the exact wording, and save it only after their yes. If status is version_locked, the current version is published and its permissions are locked: tell the merchant, ask them for a new version number (suggest the next patch number, e.g. 1.0.8 after 1.0.7), call create_app_version with their number, then call this tool again. A refusal saying a newer app version is needed means the same: offer a new version. Always relay the reply's message. When the reply has a next_step, first ask whether there's anything else to change, since one publish or build covers every change so far. Then for publish, offer publish_changes; for build, offer start_build; for subscribe, relay the message and offer neither. If you made a change earlier in this conversation that needs a build, offer a build instead of a publish. Never call publish_changes or start_build unprompted. If this project's Twinr section (replit.md on Replit, otherwise AGENTS.md) has no application_id, call list_apps, show the merchant every organization and its apps, and ask which app this project is. Never choose one yourself, and never infer it from the project's name or URL. Then record it in the project's Twinr section. Before calling this tool, tell the merchant which app you are changing by name, e.g. "Updating the icon for Shop Name…".
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": {
"app_id": "<app_id>",
"changes": "<changes>"
},
"name": "update_app_permissions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | The application_id recorded in this project's Twinr section. | |
| changes | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| message | Yes | ||
| next_step | Yes | ||
| permissions | Yes | ||
| version_number | Yes |