Ask a human to share their location
get_locationAsks the phone owner to share their current location once so you can find nearby places, set a timezone, or log a visit; returns coordinates if approved, otherwise no location.
Instructions
Ask the human who owns this phone to share where they are right now. They get a prompt and choose Share or Decline; if they share, one position is sent, once, as it was at that moment. Use it when you need their location to do the task (find the nearest branch, set a timezone, log a site visit), not to track them. Returns SHARED with latitude, longitude and accuracy, or DECLINED, NO ANSWER or EXPIRED. On anything but SHARED you have no location: do not guess one.
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": "get_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| details | No | Anything else that helps them decide. | |
| question | No | What they see on the prompt. Say why you need it: 'Share your location so I can find the nearest pharmacy?'. Defaults to 'Share your location?'. | |
| timeout_seconds | No | How long to wait for an answer. Defaults to 120. | |
| require_biometric | No | Demand a fingerprint or face before the location is sent. |