sandbox_device
Lease a phone for the box, on separate hardware: an Android emulator, or an iPhone simulator on a Mac. attach blocks until it boots. It freezes with the box (an Android emulator keeps its memory; an iPhone simulator shuts down, then reopens the app that was in front) and is attached again when the box thaws, also when the person wakes it in their app. list does not wake the box: it shows frozen devices, failed ones with the reason, and whether each platform's device host is online with free slots, its OS versions and the phones' outgoing IP (not the box's), so check it before building for a phone. The box's screen then IS the phone's screen: sandbox_shot, recordings and takeover all show it. Android also appears to adb in the box as a local device (drive the app with artemis-adb) and takes taps and typing during takeover; psbx-webview <package> forwards an app's WebView DevTools. When adb drops, the box reconnects it by itself, and a crashed or hung emulator restarts on its host with the same serial, apps and data (list shows offline or restarting meanwhile; reconnect retries now). restart reboots a phone in place, keeping apps and data; an iPhone restart also applies simctl ui settings and clears stuck system dialogs. iOS has no adb: the box gets psbx-ios (plus simctl and xcodebuild wrappers) that forward to the Mac (psbx-ios help lists what it does). Every psbx-ios verb runs in the Mac's copy of /work: psbx-ios sync /work/app puts it at work/app there, give paths relative to /work, and build products stay on the Mac. printf '你好' | psbx-ios type types any text, Chinese and emoji included, and a person on the box's screen taps and types on the simulator too. Building a Capacitor or React Native iOS project there means psbx-ios sync of the ios/ folder AND the node_modules the Xcode project links to, at the same relative path, or the package graph will not resolve. The Mac runs iOS simulators only: no macOS desktop apps, no signing for App Store builds.
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": {
"id": "<id>",
"action": "<action>"
},
"name": "sandbox_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| model | No | attach only: an Android profile (default pixel_9), or an iPhone or iPad simulator name like "iPhone 17 Pro". Without it an iPhone is the iPhone 17 Pro, or the newest iPhone Pro its iOS version runs (iPhone 16 Pro on 18.6); a model that version does not run is an error listing the ones it does | |
| action | Yes | ||
| deviceId | No | release, reconnect and restart | |
| platform | No | attach only | |
| osVersion | No | attach only: Android API level (35) or version (15), or iOS version like 26.5; a version the device hosts lack is an error that names the one they have |