Build and run the app on a cloud iPhone
phone_app_runCloud iPhone: Build the Xcode project in a folder for the Simulator, install and launch it, and answer with its first screen. Errors as file:line. A build past 40 s answers with a job for phone_job_status. Later calls reuse the project.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "phone_app_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | App env: "K=V K2=V2" (kept) | |
| git | No | An https link to a git repository, fetched into the phone's workspace first (only what changed); path is then the project's folder inside it | |
| ref | No | With git: the branch, tag or commit; default: the default branch | |
| name | No | With upload: where it goes, the same name each time keeps builds incremental; default: upload | |
| path | No | With git or upload: the project's folder inside it (default: its root); without: the project the last phone_app_run used | |
| clean | No | Build from scratch | |
| token | No | With git, instead of secret: a token you already hold for the private repository, used for this fetch only and never kept (github.com, gitlab.com or bitbucket.org). Never ask a person to paste one in the chat: use secret | |
| xcode | No | 27.1, beta or default (kept) | |
| device | No | Name or UDID; default: the one in use | |
| scheme | No | Default: the only scheme, or one named like the project | |
| secret | No | With git: the account secret holding a token for a private repository on github.com, gitlab.com or bitbucket.org (request_secret asks the person for it) | |
| upload | No | Instead of git: the upload phone_upload_link answered (a folder or archive sent to its link), unpacked into the phone's workspace (only what changed) | |
| session_id | No | The phone; default: the account's running phone | |
| permissions | No | grant (default) answers prompts; ask: iOS's prompts stay | |
| request_key | No | Repeat a lost call with the same key | |
| configuration | No | Default: Debug |