search-locations
Search locations (countries, metro areas / DMAs, and US states) using searchText input (required) and get their Levels.fyi slugs. Use this to resolve a location name (e.g. "San Francisco", "United States") into the slug the benchmark tools require in their locationSlugs filter. Each result includes its location type. Optionally restrict to one type. Without a type, a name that matches no country, metro or state is searched as a city: each city comes with its parent location (a metro, or the country where there is none), which is the slug to pass to the pay tools. Several places can share a name: pick the one the user means from context, and ask if unsure. If this returns no matches, fall back to search-all, which searches every entity type and applies a fuzzy fallback. REQUIRED arguments: searchText.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Restrict results to one location type. Omit to search countries, metros (DMAs), and states together. Cities are only returned with type "city". | |
| limit | No | Max results to return (1–15). | |
| searchText | Yes | Location name to search for (country, metro area / DMA, or US state). |