simctl_set_location
Set, clear, or run location scenarios on an iOS simulator by specifying device, action, and coordinates or scenario.
Instructions
Set or clear device location on a simulator.
Args: device: Device UDID, name, or 'booted' for current device action: Location action (set, clear, run) latitude: Latitude coordinate (required for 'set' action) longitude: Longitude coordinate (required for 'set' action) scenario: Location scenario (required for 'run' action)
Returns: Success message
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_set_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | ||
| action | Yes | ||
| latitude | No | ||
| longitude | No | ||
| scenario | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |