phone_set_location
Simulate GPS coordinates on an iPhone to test location-aware apps, then clear the simulation to restore the real location.
Instructions
Simulate GPS for testing location-aware apps. Supply both lat (-90–90) and lon (-180–180), in finite decimal degrees, or clear=true without coordinates to restore real location; combining clear with coordinates is refused. Every app sees the simulated position until cleared; it is not a navigation or address lookup tool. Counts as one daemon action and requires authorized device control. Returns the applied location/clear status; on a transport failure the effect is unknown. Inspect the result before proceeding and clear the simulation when the test ends.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | Latitude in decimal degrees (WGS84), -90..90. | |
| lon | No | Longitude in decimal degrees (WGS84), -180..180. | |
| clear | No | `true` (without lat/lon) returns the phone to its real location. | |
| instance | No | Installed local instance name, such as i13 or default. Omit to use the configured daemon. No fallback on failure. |