Perplexity · Schema

ToolUserLocation

User's geographic location for search personalization

Properties

Name Type Description
city string City name
country string ISO 3166-1 alpha-2 country code
latitude number Latitude coordinate
longitude number Longitude coordinate
region string State or region name
View JSON Schema on GitHub

JSON Schema

perplexity-tooluserlocation-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ToolUserLocation",
  "title": "ToolUserLocation",
  "description": "User's geographic location for search personalization",
  "properties": {
    "city": {
      "description": "City name",
      "type": "string"
    },
    "country": {
      "description": "ISO 3166-1 alpha-2 country code",
      "type": "string"
    },
    "latitude": {
      "description": "Latitude coordinate",
      "format": "double",
      "type": "number"
    },
    "longitude": {
      "description": "Longitude coordinate",
      "format": "double",
      "type": "number"
    },
    "region": {
      "description": "State or region name",
      "type": "string"
    }
  },
  "type": "object"
}