simctl_location
Set or clear simulated GPS coordinates on iOS Simulator devices for testing location-based app features.
Instructions
Set or clear the simulated GPS location on a simulator
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": {
"device": "<device>",
"action": "<action>"
},
"name": "simctl_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | Device UDID, name, or "booted" | |
| action | Yes | Action to perform: set a location or clear it | |
| latitude | No | Latitude coordinate (required when action is "set") | |
| longitude | No | Longitude coordinate (required when action is "set") |