box

v0.1.52
io.github.Xeno-CI/box Checked 2 hours ago Published 7 hours ago

iOS and Android builds, tests, screenshots and UI checks for your agent, on a real Mac.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

build

Build an iOS project on a Mac or an Android project on Linux. Uploads only changed files. A `.box/setup` script in the project runs on the build machine before the build, once until its contents change, and a failing script stops the build. Android returns app-debug.apk. device_build=true makes an unsigned Release build (iOS: device-build.zip; Android: app-release-unsigned.apk and app-release.aab).

ParameterTypeDescription
configurationstringDebug (default) or Release
destinationstringxcodebuild -destination (default generic/platform=iOS Simulator)
device_buildboolean
pathstringProject folder on this machine (default: the folder box mcp was started in)
platformstringOverrides .box.toml and project detection; required when both platforms are found
projectstringProject name on box (default: folder name)
project_filestring.xcodeproj or .xcworkspace path inside the project
schemestring
timeout_minutesinteger
xcodestringXcode version, e.g. 26.1

test

Build and run tests on the selected platform's simulator or emulator. A `.box/setup` script runs before the build, once until its contents change. screenshot=true (iOS) also launches the app after the tests and returns a screenshot, in the same job.

ParameterTypeDescription
configurationstringDebug (default) or Release
destinationstringxcodebuild -destination (default generic/platform=iOS Simulator)
onlyarray-only-testing values
pathstringProject folder on this machine (default: the folder box mcp was started in)
platformstringOverrides .box.toml and project detection; required when both platforms are found
projectstringProject name on box (default: folder name)
project_filestring.xcodeproj or .xcworkspace path inside the project
schemestring
screenshotboolean
timeout_minutesinteger
xcodestringXcode version, e.g. 26.1

screenshot

Build, launch on a simulator and return a screenshot (PNG). appearance and locale show the app in dark mode or another language; record=true also saves a video (screen.mp4). compare=true also compares with this project's last succeeded screenshot: a diff picture per changed screen and one line saying whether the change looks intended or broken.

ParameterTypeDescription
appearancestring
bundle_idstring
compareboolean
configurationstringDebug (default) or Release
destinationstringxcodebuild -destination (default generic/platform=iOS Simulator)
devicestringsimulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name
localestringthe app's language and region, e.g. ko_KR, ja, ar, zh-Hans
pathstringProject folder on this machine (default: the folder box mcp was started in)
platformstringOverrides .box.toml and project detection; required when both platforms are found
projectstringProject name on box (default: folder name)
project_filestring.xcodeproj or .xcworkspace path inside the project
recordboolean
schemestring
timeout_minutesinteger
wait_secondsinteger
xcodestringXcode version, e.g. 26.1

run

Build the app and keep it open on a simulator for this folder (no separate build before it). A `.box/setup` script runs before the build, once until its contents change. Two folders run at once, each on its own simulator; a third waits and says so, and does not stop the two. describe, tap, type, swipe, press_button and look act on this folder's simulator until its next build, test, run or stop.

ParameterTypeDescription
appearancestring
bundle_idstring
configurationstringDebug (default) or Release
destinationstringxcodebuild -destination (default generic/platform=iOS Simulator)
devicestringsimulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name
localestringthe app's language and region, e.g. ko_KR, ja, ar, zh-Hans
pathstringProject folder on this machine (default: the folder box mcp was started in)
platformstringOverrides .box.toml and project detection; required when both platforms are found
projectstringProject name on box (default: folder name)
project_filestring.xcodeproj or .xcworkspace path inside the project
schemestring
timeout_minutesinteger
xcodestringXcode version, e.g. 26.1

debug

Build and launch the app on a simulator under LLDB, stop at the breakpoints and return the stack and variables at each stop. breakpoints: File.swift:42 or a function name; print: variable paths to show (default: all locals); tap: an element to tap after launch to reach the code; stops: how many stops to record (default 1). Replaces the open run session. iOS only: Android cannot read variables back from the emulator yet.

ParameterTypeDescription
breakpoints *array
appearancestring
bundle_idstring
configurationstringDebug (default) or Release
destinationstringxcodebuild -destination (default generic/platform=iOS Simulator)
devicestringsimulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name
localestringthe app's language and region, e.g. ko_KR, ja, ar, zh-Hans
pathstringProject folder on this machine (default: the folder box mcp was started in)
platformstringOverrides .box.toml and project detection; required when both platforms are found
printarray
projectstringProject name on box (default: folder name)
project_filestring.xcodeproj or .xcworkspace path inside the project
schemestring
stopsinteger
tapobject
timeout_minutesinteger
wait_secondsinteger
xcodestringXcode version, e.g. 26.1

ship

Archive a Release build of the iOS app, sign it and upload it to App Store Connect for TestFlight, with the user's own App Store Connect API key (Admin access (Xcode creates the distribution certificate with it)). The build number is set automatically. key_id, issuer_id and key_file default to the BOX_ASC_KEY_ID, BOX_ASC_ISSUER_ID and BOX_ASC_KEY_PATH env of box mcp; never put the .p8 text in a tool call, give its file path. group adds the build to a TestFlight group and notes sets its What to Test text, once App Store Connect has processed it. dry_run=true only checks the key and the files. R…

ParameterTypeDescription
configurationstringDebug (default) or Release
destinationstringxcodebuild -destination (default generic/platform=iOS Simulator)
dry_runboolean
groupstring
issuer_idstring
key_filestringpath of the AuthKey_<key id>.p8 file
key_idstring
notesstring
pathstringProject folder on this machine (default: the folder box mcp was started in)
platformstringOverrides .box.toml and project detection; required when both platforms are found
projectstringProject name on box (default: folder name)
project_filestring.xcodeproj or .xcworkspace path inside the project
schemestring
teamstringApple team id, when the project does not set one
timeout_minutesinteger
xcodestringXcode version, e.g. 26.1

web

Open a web page in Safari on a Mac and in Safari on an iPhone simulator and return both pictures (safari-mac.png, safari-ios.png) with the page's JavaScript errors, console.error lines and failed requests (web.json). url: an http(s) address; or serve (the command that starts your dev server, e.g. npm run dev) with port, and url a path on it (default /); the project folder is uploaded like a build and the command runs in it (node_modules are installed in the same job when missing). Errors and failed requests are listed for each browser (on the iPhone only for pages served over http, such as ser…

ParameterTypeDescription
darkbooleandark appearance on the iPhone simulator; Safari on the Mac stays light
devicestringiPhone simulator name or udid from devices (default iPhone 17)
pathstringProject folder on this machine (default: the folder box mcp was started in)
portinteger
projectstring
servestringcommand that starts your dev server on the Mac, e.g. npm run dev
timeout_minutesinteger
urlstringhttp(s) address, or with serve a path such as /checkout
wait_forstringCSS selector to wait for before the pictures
widthintegerMac window width (default 1280)

devices

The simulators (iOS: name, runtime, udid) or emulator profiles (Android) a build machine has, for the device argument of test, run, screenshot and web. Starts a short job with no build.

ParameterTypeDescription
configurationstringDebug (default) or Release
destinationstringxcodebuild -destination (default generic/platform=iOS Simulator)
pathstringProject folder on this machine (default: the folder box mcp was started in)
platformstringOverrides .box.toml and project detection; required when both platforms are found
projectstringProject name on box (default: folder name)
project_filestring.xcodeproj or .xcworkspace path inside the project
schemestring
timeout_minutesinteger
xcodestringXcode version, e.g. 26.1

exec

Run a shell command in the project folder on the selected platform (bash).

ParameterTypeDescription
command *string
configurationstringDebug (default) or Release
destinationstringxcodebuild -destination (default generic/platform=iOS Simulator)
pathstringProject folder on this machine (default: the folder box mcp was started in)
platformstringOverrides .box.toml and project detection; required when both platforms are found
projectstringProject name on box (default: folder name)
project_filestring.xcodeproj or .xcworkspace path inside the project
schemestring
timeout_minutesinteger
xcodestringXcode version, e.g. 26.1

describe

List the elements on the simulator screen, one short line each: role, label, value and the ref that tap's id takes. tree=true indents children under their parent.

ParameterTypeDescription
appearancestring
bundle_idstring
configurationstringDebug (default) or Release
destinationstringxcodebuild -destination (default generic/platform=iOS Simulator)
devicestringsimulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name
localestringthe app's language and region, e.g. ko_KR, ja, ar, zh-Hans
pathstringProject folder on this machine (default: the folder box mcp was started in)
platformstringOverrides .box.toml and project detection; required when both platforms are found
projectstringProject name on box (default: folder name)
project_filestring.xcodeproj or .xcworkspace path inside the project
schemestring
timeout_minutesinteger
treeboolean
xcodestringXcode version, e.g. 26.1

find

Print the one element whose label, value or ref contains text, in the same line describe prints.

ParameterTypeDescription
text *string
appearancestring
bundle_idstring
configurationstringDebug (default) or Release
destinationstringxcodebuild -destination (default generic/platform=iOS Simulator)
devicestringsimulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name
localestringthe app's language and region, e.g. ko_KR, ja, ar, zh-Hans
pathstringProject folder on this machine (default: the folder box mcp was started in)
platformstringOverrides .box.toml and project detection; required when both platforms are found
projectstringProject name on box (default: folder name)
project_filestring.xcodeproj or .xcworkspace path inside the project
schemestring
timeout_minutesinteger
xcodestringXcode version, e.g. 26.1

tap

Tap an element by id or label, or a point x,y.

ParameterTypeDescription
appearancestring
bundle_idstring
configurationstringDebug (default) or Release
destinationstringxcodebuild -destination (default generic/platform=iOS Simulator)
devicestringsimulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name
idstring
labelstring
localestringthe app's language and region, e.g. ko_KR, ja, ar, zh-Hans
pathstringProject folder on this machine (default: the folder box mcp was started in)
platformstringOverrides .box.toml and project detection; required when both platforms are found
projectstringProject name on box (default: folder name)
project_filestring.xcodeproj or .xcworkspace path inside the project
schemestring
timeout_minutesinteger
xnumber
xcodestringXcode version, e.g. 26.1
ynumber

type

Type text into the focused field (any language, Korean included).

ParameterTypeDescription
text *string
appearancestring
bundle_idstring
configurationstringDebug (default) or Release
destinationstringxcodebuild -destination (default generic/platform=iOS Simulator)
devicestringsimulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name
localestringthe app's language and region, e.g. ko_KR, ja, ar, zh-Hans
pathstringProject folder on this machine (default: the folder box mcp was started in)
platformstringOverrides .box.toml and project detection; required when both platforms are found
projectstringProject name on box (default: folder name)
project_filestring.xcodeproj or .xcworkspace path inside the project
schemestring
timeout_minutesinteger
xcodestringXcode version, e.g. 26.1

swipe

Swipe from one point to another.

ParameterTypeDescription
from *array
to *array
appearancestring
bundle_idstring
configurationstringDebug (default) or Release
destinationstringxcodebuild -destination (default generic/platform=iOS Simulator)
devicestringsimulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name
localestringthe app's language and region, e.g. ko_KR, ja, ar, zh-Hans
pathstringProject folder on this machine (default: the folder box mcp was started in)
platformstringOverrides .box.toml and project detection; required when both platforms are found
projectstringProject name on box (default: folder name)
project_filestring.xcodeproj or .xcworkspace path inside the project
schemestring
timeout_minutesinteger
xcodestringXcode version, e.g. 26.1

press_button

Press a hardware button: home, lock, side or siri.

ParameterTypeDescription
button *string
appearancestring
bundle_idstring
configurationstringDebug (default) or Release
destinationstringxcodebuild -destination (default generic/platform=iOS Simulator)
devicestringsimulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name
localestringthe app's language and region, e.g. ko_KR, ja, ar, zh-Hans
pathstringProject folder on this machine (default: the folder box mcp was started in)
platformstringOverrides .box.toml and project detection; required when both platforms are found
projectstringProject name on box (default: folder name)
project_filestring.xcodeproj or .xcworkspace path inside the project
schemestring
timeout_minutesinteger
xcodestringXcode version, e.g. 26.1

look

A picture of the simulator screen right now (PNG).

ParameterTypeDescription
appearancestring
bundle_idstring
configurationstringDebug (default) or Release
destinationstringxcodebuild -destination (default generic/platform=iOS Simulator)
devicestringsimulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name
localestringthe app's language and region, e.g. ko_KR, ja, ar, zh-Hans
pathstringProject folder on this machine (default: the folder box mcp was started in)
platformstringOverrides .box.toml and project detection; required when both platforms are found
projectstringProject name on box (default: folder name)
project_filestring.xcodeproj or .xcworkspace path inside the project
schemestring
timeout_minutesinteger
xcodestringXcode version, e.g. 26.1

record_screen

Record the open app session's screen as a video: state start begins, state stop ends it and saves screen.mp4 (its path is in the answer). Needs a session from run.

ParameterTypeDescription
state *string
appearancestring
bundle_idstring
configurationstringDebug (default) or Release
destinationstringxcodebuild -destination (default generic/platform=iOS Simulator)
devicestringsimulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name
localestringthe app's language and region, e.g. ko_KR, ja, ar, zh-Hans
pathstringProject folder on this machine (default: the folder box mcp was started in)
platformstringOverrides .box.toml and project detection; required when both platforms are found
projectstringProject name on box (default: folder name)
project_filestring.xcodeproj or .xcworkspace path inside the project
schemestring
timeout_minutesinteger
xcodestringXcode version, e.g. 26.1

share_live

A link to the open app session's live screen for a person without a box sign-in (give it to the user): they watch and, unless view_only, tap and type in a browser. It works until minutes pass (default 60, up to 1440) or the session ends.

ParameterTypeDescription
jobstringthe run job (default: the open session of the last job)
minutesinteger
view_onlyboolean

stop

Stop a job or the open app session (default: the last job).

ParameterTypeDescription
jobstring

report_problem

Tell the box team about a problem with box itself (not your app), with a job attached (default: the last job). To get a failed job's charge back, use report_job instead.

ParameterTypeDescription
text *string
jobstring

report_job

Report one job for a refund. Call it yourself when a failure looks like box's side and not the app's code: the Mac failed, the job timed out or never started, the connection dropped, or the charge looks wrong (a failed job that ends with 'looks like our side' is one). Do not report the app's own compile errors or failing tests. One report per job; the box team checks it within a few hours and the claims tool shows the result. Default job: the last one.

ParameterTypeDescription
reason *stringwhat went wrong, one line
jobstring

claims

Your job reports and their results: open, refunded with the amount, or declined with the reason.

status

Balance in US dollars, iOS and Android build minutes left at the configured per-started-minute rates, minutes used today, running and queued jobs, the open simulator session of each folder, and the last job.

why

Why a failed job failed (default: the last job): three lines, where (file:line), why and fix, read by AI from what only the Mac has (crash reports symbolicated with the build's dSYM, failing tests with their locations, the log). A failed build or test already ends with its one-line ai: answer when the account has it.

ParameterTypeDescription
jobstring

ai

box AI for this account: state on, off or status (default status). On by default; off sends no failed job's log, test results or screen to the AI models from then on (why and compare give no model answer).

ParameterTypeDescription
statestring

logs

The log of a job (default: the last one) as text.

ParameterTypeDescription
jobstring

usage

Usage rows for a date range (YYYY-MM-DD).

ParameterTypeDescription
fromstring
tostring

login

Sign in. The first call returns a link for the user (they open it and press Continue with GitHub); call it again with wait_seconds (up to 50) and it returns as soon as they finish, so the user never has to say they are done. Ends with signed_in, pending or expired.

ParameterTypeDescription
wait_secondsinteger

topup

The top-up link for the account wallet (opens nothing; give it to the user). Ask the user before making one: money is their decision, never top up by yourself. With wait_seconds (up to 50) it then returns once the balance goes up.

ParameterTypeDescription
wait_secondsinteger