search-jobs
Search open jobs on Levels.fyi, with the pay range each posting states. Returns { jobs, totalMatchingJobs, nextOffset }; each job has its title, company, locations, work arrangement, posting date, pay range, url (the Levels.fyi job page) and applyUrl.
Simplify the user's request to role names and terms that appear in job posts. Pass at most one location per call, and only one the user named: resolve it with search-locations, and never use the user's own position. Resolve companies and job families with search-companies and search-job-families. If nothing matches, widen the search (drop a filter or simplify the query) and try once more; if there's still nothing, say so rather than listing unrelated jobs.
When the user asks for jobs without saying which role, offer to search from their Levels.fyi profile. If they agree, call get-profile and draft the query from its title, job family and location (locationSlug). Before searching, show the user the values you will use and ask them to confirm or change them: a profile describes the job they have, not necessarily the one they want next. Do not call get-profile without asking.
Results come up to 2 jobs per company; limit counts companies, except with a single companySlug, where it counts jobs. A page can hold fewer than limit; keep paging while nextOffset is not null. Put each job's url on its title and keep URLs complete. When the client shows results as cards, do not list them again in text: summarise the patterns instead. Call get-job for a posting's full description. REQUIRED arguments: query. Array-typed arguments (e.g. companySlugs, jobFamilySlugs) must be passed as arrays, even for a single value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Companies per page (default 10, max 25). Each returns up to 2 jobs; with one companySlug it is jobs per page. | |
| query | Yes | Role names and terms that appear in job posts, e.g. "backend engineer" or "product designer fintech". Simplify the user's words; leave out locations and salary. | |
| offset | No | Pass the previous result's nextOffset to get the next page. | |
| sortBy | No | relevance | |
| companySlugs | No | Company slugs from search-companies, at most 5. | |
| locationSlug | No | One location slug from search-locations (city, metro, state or country). Only a location the user named. | |
| jobFamilySlugs | No | Job family slugs from search-job-families, at most 10. | |
| standardLevels | No | ||
| employmentTypes | No | ||
| postedWithinDays | No | Only jobs posted in the last N days. | |
| workArrangements | No | ||
| minBaseCompensation | No | Minimum base salary, compared with the top of the posting's range as posted (most postings are USD). | |
| minMedianTotalCompensation | No | Minimum total compensation, compared with the top of the posting's range. |