Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Search Google Flights for flight prices and schedules using browser automation. Use when user asks to search flights, find airfare, compare prices, check flight availability, or look up routes. Triggers include "search flights", "find flights", "how much is a flight", "flights from X to Y", "cheapest flight", "flight prices", "airfare", "flight schedule", "nonstop flights", "when should I fly".
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 259% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -21% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 88% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 103% | 0% |
| case-16 | ✗→✓ | ▲ Improved | 17% | 0% |
Tool: shell_exec — run agent-browser commands (NOT web_search)
bash# Typical usage — 2 commands for domestic, 3 for international agent-browser --session flights open "https://www.google.com/travel/flights?q=Flights+from+BOM+to+DXB+on+2026-12-20+one+way" && agent-browser --session flights wait --load networkidle agent-browser --session flights snapshot -i
Search Google Flights via agent-browser to find flight prices, schedules, and availability.
--session flights--session econ + --session bizDomestic = both origin and destination are US airports. Show economy only by default. Show business class when user asks for it or it's an international route.
https://www.google.com/travel/flights?q=Flights+from+{ORIGIN}+to+{DEST}+on+{DATE}[+returning+{DATE}][+one+way][+business+class][+N+passengers]Supports: round trip, one way, business/first class, N passengers, adults+children, IATA codes, city names, YYYY-MM-DD dates. Does NOT support via URL: premium economy, multi-city.
bashagent-browser --session flights open "https://www.google.com/travel/flights?q=Flights+from+MIA+to+SFO+on+2026-04-28+returning+2026-04-30" && agent-browser --session flights wait --load networkidle agent-browser --session flights snapshot -i
bash(agent-browser --session econ open "https://www.google.com/travel/flights?q=Flights+from+BOM+to+DXB+on+2026-12-20" && agent-browser --session econ wait --load networkidle) & (agent-browser --session biz open "https://www.google.com/travel/flights?q=Flights+from+BOM+to+DXB+on+2026-12-20+business+class" && agent-browser --session biz wait --load networkidle) & wait agent-browser --session econ snapshot -i & agent-browser --session biz snapshot -i & wait agent-browser --session biz close
Parse snapshot link elements (each flight = one link with airline, times, duration, price). Present as compact list:
1. Air India — Nonstop · 3h 10m
6:00 AM → 8:10 AM
Economy: ₹8,250 · Business: ₹42,000 (+409%)
2. Emirates — 1 stop · 7h 25m
10:00 PM → 3:25 AM+1
Economy: ₹12,100 · Business: ₹58,500 (+383%)
3. IndiGo — Nonstop · 3h 05m
9:15 AM → 12:20 PM
Economy: ₹7,800 · Business: —Economy-only format (domestic): Airline — Stops · Duration\nTimes · Price
After results, always offer: "Want booking links for any of these? Just say which one."
When user picks a flight:
bashagent-browser --session flights click @eN # click the flight link from snapshot agent-browser --session flights wait 3000 agent-browser --session flights snapshot -i
Extract provider name, price, and URL from the booking panel links.
Use for: multi-city, premium economy, or when URL path fails.
bashagent-browser --session flights open "https://www.google.com/travel/flights" agent-browser --session flights wait 3000 agent-browser --session flights snapshot -i # 1. Set trip type (combobox: Round trip / One way / Multi-city) # 2. Set cabin class and passengers (if non-default) # 3. Enter airports: click field → fill "BOM" → wait 2s → snapshot → click suggestion # 4. Set dates: click date field → click calendar date → click "Done" # 5. Click "Search" button ("Done" only closes calendar — search is separate) agent-browser --session flights wait --load networkidle agent-browser --session flights snapshot -i
Key rules: use fill not type for airports; always click suggestions (never press Enter); wait 2s after typing for autocomplete; re-snapshot after every interaction.
| Rule | Why | |------|-----| | Prefer URL fast path | 2-3 calls vs 15+ interactive | | Chain open && wait with && | Saves a round-trip | | Skip business for domestic | US domestic business is 3-5x cost, rarely needed unless asked | | Parallel snapshots with & + wait | Both run concurrently for international | | wait --load networkidle | Smarter than fixed wait 5000 | | Keep results session alive | Needed for booking clicks; close biz after price delta extracted | | Always offer booking links after results | Users almost always want to book |
?q= differentlyFor annotated walkthroughs, airport autocomplete edge cases, calendar navigation, and multi-city steps — see references/interaction-patterns.md.
Other measured skills in the registry, with their headline benchmark lift.