Skip to content

feat: add startNativeSession tool for native automation sessions (KOB-54362, 1.11.0) - #116

Merged
IT-Kobiton merged 2 commits into
mainfrom
KOB-54362
Aug 20, 2026
Merged

feat: add startNativeSession tool for native automation sessions (KOB-54362, 1.11.0)#116
IT-Kobiton merged 2 commits into
mainfrom
KOB-54362

Conversation

@TranKienCuong

Copy link
Copy Markdown
Contributor

Summary

Adds startNativeSession to the Sessions domain — start a native automation session (XCUITest on iOS, UIAutomator on Android, or GameDriver) on a Kobiton device directly from an AI agent, without hand-crafted JSON-RPC.

Changes

  • tools/sessions.yaml: new startNativeSession tool definition. Only userIntent and testFramework are required; device targeting accepts an exact udid or deviceName/platformVersion matching; the app under test and test-runner bundle are passed as store identifiers from uploadAppToStore. Annotations follow the resource-creating pattern (readOnlyHint/destructiveHint/idempotentHint/openWorldHint all false).
  • README.md: tool count 31; row added to the Sessions table.
  • Version 1.11.0 (package.json source of truth; manifests synced via pnpm run build:version; CHANGELOG entry added).

Notes

  • The tool starts a real, billable device session; the description steers agents to listDevices first.
  • sessionTimeout/testTimeout are in minutes; deviceWaitTimeout is in seconds and only honored for queued executions.
  • Rebased on main after 1.10.0 shipped; validate + build + vitest (193/193) green.

🤖 Generated with Claude Code

…-54362)

Expose a Sessions-domain tool that starts a native automation session
(XCUITest on iOS, UIAutomator on Android, or GameDriver) on a Kobiton
device. Only userIntent and testFramework are required; device targeting
accepts an exact udid or deviceName/platformVersion matching, and the app
under test plus test-runner bundle are passed as kobiton-store identifiers
from uploadAppToStore.

Also documents the previously missing getOrgSettings row in the README
tools table and corrects the tool count to 31.

Version 1.10.0 (package.json is the source of truth; manifests synced via
pnpm run build:version).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: cuongktran <trankiencuong10@gmail.com>
Comment thread tools/sessions.yaml
Comment thread tools/sessions.yaml
Comment thread tools/sessions.yaml
Comment thread tools/sessions.yaml
- deviceGroup enum: CLOUD was never a valid value server-side (the
  device-pool switch handles KOBITON / ORGANIZATION / ANY and defaults
  to ANY) — an agent picking CLOUD would get an opaque no-devices
  failure. Replaced with ANY and documented all three values.
- noReset / fullReset: documented as mutually exclusive.
- runCommand: documented as ignored for XCUITEST and UIAUTOMATOR.
- app / testRunner: documented as required for XCUITEST and UIAUTOMATOR
  (server-side validation rejects the call when omitted); kept out of
  the schema-level required list for GameDriver flexibility.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: cuongktran <trankiencuong10@gmail.com>
@IT-Kobiton
IT-Kobiton merged commit 0a881ed into main Aug 20, 2026
3 checks passed
@IT-Kobiton
IT-Kobiton deleted the KOB-54362 branch August 20, 2026 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants