| name | skyscanner-search |
| description | Search and extract flight prices from Skyscanner |
Task: Search for flights on Skyscanner and extract the top 5 cheapest options with real prices.
Search parameters:
- From: {origin_city}
- To: {destination_city}
- Departure: {departure_date}
- Return: {return_date}
- Passengers: {passengers} adults
- Class: Economy
Steps:
- Navigate to https://www.skyscanner.com.sg/ (or https://www.skyscanner.net/)
- Find the "From" field. Click it, clear existing text, type "{origin_city}", select the matching airport.
- Find the "To" field. Click it, type "{destination_city}", select the matching airport.
- Click the departure date field, navigate to the correct month, select {departure_date}.
- Click the return date field, navigate to the correct month, select {return_date}.
- Set passengers to {passengers} adults if not already set.
- Click "Search flights".
- Wait for results to load (flight cards with prices visible).
- If asked to sort, select "Cheapest" sort option.
- Extract the top 5 cheapest options. For each extract:
- Airline name
- Departure and arrival times
- Duration and stops
- Total price with currency
- Booking link if available
Return the results as a JSON array with this format:
[
{"airline": "...", "departure": "...", "arrival": "...", "duration": "...", "stops": "...", "price": "...", "currency": "...", "booking_url": "..."},
...
]