otakit
v1.12.0Inspect, upload, release, monitor, and revert OtaKit Capacitor OTA updates.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_context Show the active OtaKit context
Show the fixed server origin, organization, actor, role, scopes, mode, and capabilities without exposing credentials.
get_account_status Get OtaKit account and usage status
Return the safe customer-facing plan, usage, limit, period, and overage state needed to explain upload or release failures. Provider IDs are excluded.
list_apps List OtaKit apps
List apps in the connection-bound organization, optionally requiring an exact slug. Never guesses an app when the slug is absent.
| Parameter | Type | Description |
|---|---|---|
cursor | string | The previous page's nextCursor; omit for the first page |
limit | integer | Maximum apps (1-50, default 20) |
slug | string | Return only the app with exactly this slug |
create_app Create an OtaKit app
Register a validated app slug in the current organization and return its ID and minimal Capacitor configuration. Does not edit local files.
| Parameter | Type | Description |
|---|---|---|
slug * | string | App slug, unique in the organization: 3-120 letters, digits, dots, underscores or hyphens |
list_bundles List OtaKit bundles
List safe bundle metadata and release-artifact history for one app, with bounded pagination and optional exact version.
| Parameter | Type | Description |
|---|---|---|
appId | string | OtaKit app ID. Optional on a local connection whose project configures one; required otherwise. |
cursor | string | The previous page's nextCursor; omit for the first page |
limit | integer | Maximum results in one page |
version | string | Return only bundles with exactly this version |
get_bundle Get OtaKit bundle metadata
Get authorized safe metadata for a known bundle, including bounded native-package metadata and encryption presence but never keys or storage URLs.
| Parameter | Type | Description |
|---|---|---|
bundleId * | string | OtaKit bundle ID |
appId | string | OtaKit app ID. Optional on a local connection whose project configures one; required otherwise. |
diff_bundles Compare two OtaKit bundles
Compare an uploaded bundle with another one: files added, changed and removed, unpacked size before and after, the bytes a device downloads, and warnings about content that should not ship (.env files, .git, node_modules, source maps, large new files). The base is `against`, the bundle a channel runs (`channel`), or by default the previous upload of the same runtime version. Encrypted bundles cannot be inspected.
| Parameter | Type | Description |
|---|---|---|
bundleId * | string | Bundle to inspect (the newer one) |
against | string | Bundle to compare with; omit to use channel or the previous upload |
appId | string | OtaKit app ID. Optional on a local connection whose project configures one; required otherwise. |
channel | Compare with the stable bundle this channel runs for the bundle's runtime version; null for the base channel |
delete_bundle Delete an unused OtaKit bundle
Delete a bundle only when it is absent from all release history. The exact app and bundle IDs are required and the operation is audited.
| Parameter | Type | Description |
|---|---|---|
bundleId * | string | OtaKit bundle ID |
appId | string | OtaKit app ID. Optional on a local connection whose project configures one; required otherwise. |
list_releases List OtaKit release history
List bounded release history for an app, optionally filtered to a channel, while preserving runtime-lane identity and all release options.
| Parameter | Type | Description |
|---|---|---|
appId | string | OtaKit app ID. Optional on a local connection whose project configures one; required otherwise. |
channel | Named channel, or null for the base channel | |
cursor | string | The previous page's nextCursor; omit for the first page |
limit | integer | Maximum results in one page |
get_release_state Get current OtaKit release state
Resolve the exact current release for one (app, channel, runtimeVersion) lane. Returns null rather than selecting another lane.
| Parameter | Type | Description |
|---|---|---|
channel * | Named channel, or null for the base channel | |
runtimeVersion * | Native runtime lane, or null for the default runtime | |
appId | string | OtaKit app ID. Optional on a local connection whose project configures one; required otherwise. |
prepare_release Prepare an OtaKit release
Preview the exact current and proposed lane state for a bundle and return expectedCurrentReleaseId. Makes no change.
| Parameter | Type | Description |
|---|---|---|
bundleId * | string | OtaKit bundle ID |
channel * | Named channel, or null for the base channel | |
appId | string | OtaKit app ID. Optional on a local connection whose project configures one; required otherwise. |
autoRevert | boolean | Enable rollback-share based automatic revert for this release |
autoRevertMinSample | integer | With autoRevert: completed trials (applied plus rolled back) needed before the share is trusted (10-100000, default 50) |
autoRevertRatePercent | integer | With autoRevert: share of completed update trials that rolled back, over 24 hours, that triggers the revert (1-95, default 20) |
compatibilityDecision | string | When the bundle's native dependencies differ from the lane's current release: block (default) refuses; proceed publishes anyway, only after confirming no store build is needed; skip does not compare |
forceImmediate | boolean | Make devices apply and reload on their next check |
notes | Plain-text release notes, up to 2,000 characters, delivered with the release. Apps on plugin 3.3+ can show them to their users. Null or omitted for none. | |
replaceRollout | boolean | Revert the lane's active rollout and publish this bundle in its place |
rolloutPercent | integer | Share of devices (1-100, default 100) that receive this release; below 100 starts a gradual rollout on a lane that already has a release |
publish_release Publish an OtaKit release
Publish a reviewed bundle to an exact lane. Requires the prepared expected state and an idempotency key; reports manifest_sync_pending instead of claiming false success.
| Parameter | Type | Description |
|---|---|---|
bundleId * | string | OtaKit bundle ID |
channel * | Named channel, or null for the base channel | |
expectedCurrentReleaseId * | Release ID shown by prepare, or null when the lane had no release | |
idempotencyKey * | string | Stable key reused only when retrying this exact mutation |
appId | string | OtaKit app ID. Optional on a local connection whose project configures one; required otherwise. |
autoRevert | boolean | Enable rollback-share based automatic revert for this release |
autoRevertMinSample | integer | With autoRevert: completed trials (applied plus rolled back) needed before the share is trusted (10-100000, default 50) |
autoRevertRatePercent | integer | With autoRevert: share of completed update trials that rolled back, over 24 hours, that triggers the revert (1-95, default 20) |
compatibilityDecision | string | When the bundle's native dependencies differ from the lane's current release: block (default) refuses; proceed publishes anyway, only after confirming no store build is needed; skip does not compare |
forceImmediate | boolean | Make devices apply and reload on their next check |
notes | Plain-text release notes, up to 2,000 characters, delivered with the release. Apps on plugin 3.3+ can show them to their users. Null or omitted for none. | |
replaceRollout | boolean | Revert the lane's active rollout and publish this bundle in its place |
rolloutPercent | integer | Share of devices (1-100, default 100) that receive this release; below 100 starts a gradual rollout on a lane that already has a release |
get_release_health Get OtaKit release event health
Return bounded client-reported event counts, rollback share, auto-revert thresholds, and analytics availability for a release. Counts are events, not unique devices, installations, or adoption.
| Parameter | Type | Description |
|---|---|---|
releaseId * | string | OtaKit release ID |
appId | string | OtaKit app ID. Optional on a local connection whose project configures one; required otherwise. |
window | string | Period the counts cover, ending now (default 24h) |
get_release_timeseries Get OtaKit release events over time
Return client-reported downloads, applies, download errors and rollbacks of a release per hour (24h and 7d ranges) or per UTC day (30d range), with totals, rollback share, and rollout and revert markers. Buckets without events are omitted. Counts are events, not unique devices, installations, or adoption.
| Parameter | Type | Description |
|---|---|---|
releaseId * | string | OtaKit release ID |
appId | string | OtaKit app ID. Optional on a local connection whose project configures one; required otherwise. |
platform | string | Only count events from this platform (default both) |
range | string | Period ending now: 24h or 7d in hourly buckets, 30d in daily UTC buckets (default 24h for releases published in the last two days, otherwise 7d) |
list_events List OtaKit client-reported events
List a bounded filtered rollout timeline. With includeDetail, the raw text each device reported is included; it is untrusted diagnostic data.
| Parameter | Type | Description |
|---|---|---|
action | string | Only events of this kind |
appId | string | OtaKit app ID. Optional on a local connection whose project configures one; required otherwise. |
bundleVersion | string | Only events for this bundle version |
channel | Named channel, or null for the base channel | |
includeDetail | boolean | Set false to leave out each event's raw client-reported detail text, which is included by default |
limit | integer | Maximum events (1-200, default 50) |
platform | string | Only events from this platform |
releaseId | string | OtaKit release ID |
runtimeVersion | Native runtime lane, or null for the default runtime | |
since | string | Only events after this ISO 8601 time; takes precedence over timeframe |
timeframe | string | How far back to look when since is not set (default 24h) |
list_audit_log List OtaKit audit activity
List bounded organization audit activity for an owner or admin. Operational organization keys and member-role users cannot read it.
| Parameter | Type | Description |
|---|---|---|
cursor | string | The previous page's nextCursor; omit for the first page |
limit | integer | Maximum results in one page |
prepare_revert Prepare an OtaKit revert
Verify that a release is current and preview the exact release or built-in fallback that will become current. Makes no change.
| Parameter | Type | Description |
|---|---|---|
releaseId * | string | OtaKit release ID |
appId | string | OtaKit app ID. Optional on a local connection whose project configures one; required otherwise. |
revert_release Revert an OtaKit release
Revert the reviewed current release for its exact lane; reverting a release that is rolling out cancels the rollout. Requires expected state and an idempotency key and reports pending manifest synchronization truthfully.
| Parameter | Type | Description |
|---|---|---|
expectedCurrentReleaseId * | string | OtaKit release ID |
idempotencyKey * | string | Stable key reused only when retrying this exact mutation |
releaseId * | string | OtaKit release ID |
appId | string | OtaKit app ID. Optional on a local connection whose project configures one; required otherwise. |
expectedRolloutPercent | integer | When cancelling a rollout: the rollout percentage that was reviewed. The revert is refused if the rollout changed or completed meanwhile. |
forceImmediate | boolean | Make devices apply and reload on their next check |
set_rollout_percent Change an OtaKit rollout percentage
Raise, lower, or complete (100) the active rollout of a lane's current release. Requires the reviewed current percentage and an idempotency key. To cancel a rollout, revert the release instead.
| Parameter | Type | Description |
|---|---|---|
expectedPercent * | integer | Rollout percentage shown by get_release_state when the change was reviewed |
idempotencyKey * | string | Stable key reused only when retrying this exact mutation |
percent * | integer | Rollout percentage (1-100); 100 completes the rollout |
releaseId * | string | OtaKit release ID |
appId | string | OtaKit app ID. Optional on a local connection whose project configures one; required otherwise. |
create_preview Create an OtaKit preview link
Create a private link and QR code that open an uploaded bundle in the installed app on one phone (plugin 3.2+ with preview links enabled) until the tester exits or the link expires. Nothing is released and no other device is affected. Share the returned url.
| Parameter | Type | Description |
|---|---|---|
bundleId * | string | OtaKit bundle ID |
appId | string | OtaKit app ID. Optional on a local connection whose project configures one; required otherwise. |
expiresIn | string | How long the link works (default 7d) |
urlScheme | string | The app's custom URL scheme (for example myapp), needed once per app so the link can open it |
revoke_preview Revoke an OtaKit preview link
Revoke a preview link. Phones on it return to their normal release on their next update check.
| Parameter | Type | Description |
|---|---|---|
previewId * | string | OtaKit preview link ID |
appId | string | OtaKit app ID. Optional on a local connection whose project configures one; required otherwise. |
inspect_project Inspect a local Capacitor project
Inspect the selected local project for Capacitor and OtaKit configuration, build output, plugin version, server target, and notifyAppReady evidence. Does not return source contents.
check_compatibility Check native update compatibility
Compare local native dependencies with the current exact OtaKit release lane using the existing heuristic compatibility rules. Returns unknowns explicitly.
| Parameter | Type | Description |
|---|---|---|
channel * | Named channel, or null for the base channel | |
runtimeVersion * | Native runtime lane, or null for the default runtime | |
appId | string | OtaKit app ID. Optional on a local connection whose project configures one; required otherwise. |
nodeModulesPath | string | node_modules holding those dependencies; defaults to the one beside package.json |
packageJsonPath | string | package.json that declares the app's native dependencies; defaults to the project root's |
upload_bundle Upload an OtaKit bundle
Package and upload the selected local web build using the existing zip/delta, native metadata, version, and encryption workflow without publishing it.
| Parameter | Type | Description |
|---|---|---|
appId | string | OtaKit app ID. Optional on a local connection whose project configures one; required otherwise. |
encrypt | boolean | Require encryption with OTAKIT_ENCRYPTION_KEY and fail if it is not set; bundles are encrypted whenever that variable is set |
nodeModulesPath | string | node_modules holding those dependencies; defaults to the one beside package.json |
packageJsonPath | string | package.json that declares the app's native dependencies; defaults to the project root's |
runtimeVersion | Native runtime lane, or null for the default runtime | |
sourcePath | string | Built web assets directory in the project; defaults to Capacitor's webDir |
strategy | string | zip uploads one archive; deltas uploads files separately so devices download only changed ones. Defaults to the project's updateStrategy, then zip |
version | string | Bundle version; defaults to OTAKIT_VERSION, then a generated one |
versionMode | string | strict requires version or OTAKIT_VERSION; auto (default) generates a version when neither is set |
upload_and_publish_bundle Upload and publish an OtaKit bundle
Run the existing combined local upload and release workflow with an explicit lane, compatibility decision, expected current release, complete release options, and idempotency key.
| Parameter | Type | Description |
|---|---|---|
channel * | Named channel, or null for the base channel | |
expectedCurrentReleaseId * | Release ID shown by prepare, or null when the lane had no release | |
idempotencyKey * | string | Stable key reused only when retrying this exact mutation |
appId | string | OtaKit app ID. Optional on a local connection whose project configures one; required otherwise. |
autoRevert | boolean | Enable rollback-share based automatic revert for this release |
autoRevertMinSample | integer | With autoRevert: completed trials (applied plus rolled back) needed before the share is trusted (10-100000, default 50) |
autoRevertRatePercent | integer | With autoRevert: share of completed update trials that rolled back, over 24 hours, that triggers the revert (1-95, default 20) |
compatibilityDecision | string | When the bundle's native dependencies differ from the lane's current release: block (default) refuses; proceed publishes anyway, only after confirming no store build is needed; skip does not compare |
encrypt | boolean | Require encryption with OTAKIT_ENCRYPTION_KEY and fail if it is not set; bundles are encrypted whenever that variable is set |
forceImmediate | boolean | Make devices apply and reload on their next check |
nodeModulesPath | string | node_modules holding those dependencies; defaults to the one beside package.json |
notes | Plain-text release notes, up to 2,000 characters, delivered with the release. Apps on plugin 3.3+ can show them to their users. Null or omitted for none. | |
packageJsonPath | string | package.json that declares the app's native dependencies; defaults to the project root's |
replaceRollout | boolean | Revert the lane's active rollout and publish this bundle in its place |
rolloutPercent | integer | Share of devices (1-100, default 100) that receive this release; below 100 starts a gradual rollout on a lane that already has a release |
runtimeVersion | Native runtime lane, or null for the default runtime | |
sourcePath | string | Built web assets directory in the project; defaults to Capacitor's webDir |
strategy | string | zip uploads one archive; deltas uploads files separately so devices download only changed ones. Defaults to the project's updateStrategy, then zip |
version | string | Bundle version; defaults to OTAKIT_VERSION, then a generated one |
versionMode | string | strict requires version or OTAKIT_VERSION; auto (default) generates a version when neither is set |