sim_action
Do one thing on an iOS simulator (the running one, or udid): boot or shutdown (with udid), tap (x, y), swipe (x, y to toX, toY), type text into the focused field (any language), home, open_url (a link or deep link), launch an app by bundleId, or install an .app (appPath, inside the folders BCD may use; build one with ios_build). x and y are fractions of sim_screenshot's image. Take a sim_screenshot after to see the result. Needs ui permission; launch also needs process, and install process and read, since a simulator app runs as a program on this Mac.
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": {
"action": "<action>"
},
"name": "sim_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| toX | No | ||
| toY | No | ||
| url | No | ||
| text | No | ||
| udid | No | ||
| action | Yes | ||
| appPath | No | ||
| bundleId | No | ||
| deviceId | No | Computer name or id | |
| workSessionId | No | From create_work_session |