Flight Search
name: flight-search
by arisefx · published 2026-04-01
$ claw add gh:arisefx/arisefx-variflight-flight-search---
name: flight-search
description: Search one-way flight lists from the Variflight ticket API by departure IATA city code, arrival IATA city code, and departure date.
metadata: {"openclaw":{"homepage":"https://ticket.variflight.com/","requires":{"bins":["python3"]}}}
---
# Flight Search
Overview
Use the bundled script to query the Variflight ticket API and return one-way flight options for a single route and date.
Workflow
1. Collect `dep`, `arr`, and `date`.
2. Validate `dep` and `arr` as three-letter IATA city codes and `date` as `YYYY-MM-DD`.
3. If the user gives city names instead of codes, infer only when the mapping is unambiguous; otherwise ask for the IATA codes.
4. Run `python3 scripts/query_flights.py --dep BJS --arr SHA --date 2026-04-21`.
5. Summarize the result with departure airport, arrival airport, times, duration, price, transfer info, and the flight tag text.
Output Rules
Script
- `--dep`
- `--arr`
- `--date`
- `--limit`
- `--json`
Example
Run `python3 scripts/query_flights.py --dep BJS --arr SHA --date 2026-04-21 --limit 5` to fetch the first five displayed results for Beijing to Shanghai on April 21, 2026.
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...