Skip to content

fly ai agent skill

docs: rename reference files for consistency and bump to v1.0.12

yealexchen944e21e75e38
diff --git a/README.md b/README.md
index 481007b..1223048 100644
--- a/README.md
+++ b/README.md
@@ -55,7 +55,7 @@ npm i -g @fly-ai/flyai-cli
### Step 3 — Verify
```bash
-flyai fliggy-fast-search --query "things to do in Tokyo"
+flyai keyword-search --query "things to do in Tokyo"
```
You should see structured JSON output. You're good to go.
@@ -74,35 +74,35 @@ FlyAI provides four commands, each tailored to a different search pattern:
| Command | Purpose | Required Params |
|---------|---------|-----------------|
-| `fliggy-fast-search` | Natural-language meta-search across all travel categories | `--query` |
+| `keyword-search` | Natural-language keyword search across all travel categories | `--query` |
| `search-flight` | Structured flight search with deep filtering | `--origin` |
-| `search-hotels` | Structured hotel search by destination | `--dest-name` |
+| `search-hotel` | Structured hotel search by destination | `--dest-name` |
| `search-poi` | Attraction & POI search by city | `--city-name` |
-### `fliggy-fast-search` — Broad Discovery
+### `keyword-search` — Broad Discovery
One query, all categories. Hotels, flights, tickets, tours, cruises, visas, SIM cards — it searches everything.
**OpenClaw:**
```
-/flyai fliggy-fast-search --query "Hangzhou 3-day trip"
-/flyai fliggy-fast-search --query "France visa"
-/flyai fliggy-fast-search --query "Shanghai cruise"
+/flyai keyword-search --query "Hangzhou 3-day trip"
+/flyai keyword-search --query "France visa"
+/flyai keyword-search --query "Shanghai cruise"
```
**Claude Code:**
```
-/flyai fliggy-fast-search --query "Hangzhou 3-day trip"
-/flyai fliggy-fast-search --query "France visa"
-/flyai fliggy-fast-search --query "Shanghai cruise"
+/flyai keyword-search --query "Hangzhou 3-day trip"
+/flyai keyword-search --query "France visa"
+/flyai keyword-search --query "Shanghai cruise"
```
**CLI:**
```bash
-flyai fliggy-fast-search --query "Hangzhou 3-day trip"
+flyai keyword-search --query "Hangzhou 3-day trip"
```
### `search-flight` — Flight Comparison
@@ -151,26 +151,26 @@ flyai search-flight \
</details>
-### `search-hotels` — Hotel Comparison
+### `search-hotel` — Hotel Comparison
Search by destination with filters for star rating, bed type, price range, and nearby POIs.
**OpenClaw / Claude Code:**
```
-/flyai search-hotels --dest-name "Hangzhou" --poi-name "West Lake" --check-in-date 2026-04-10 --check-out-date 2026-04-12
+/flyai search-hotel --dest-name "Hangzhou" --poi-name "West Lake" --check-in-date 2026-04-10 --check-out-date 2026-04-12
```
**CLI:**
```bash
# Hotels near West Lake, Hangzhou
-flyai search-hotels \
+flyai search-hotel \
--dest-name "Hangzhou" --poi-name "West Lake" \
--check-in-date 2026-04-10 --check-out-date 2026-04-12
# 4-5 star hotels in Sanya under ¥800, sorted by rating
-flyai search-hotels \
+flyai search-hotel \
--dest-name "Sanya" --hotel-stars "4,5" \
--sort rate_desc --max-price 800
```
@@ -255,8 +255,8 @@ Ask naturally or use the `/flyai` slash command inside Claude Code:
> Find concerts and live events happening in Hangzhou
```
-/flyai fliggy-fast-search --query "5-day Japan trip from Shanghai"
-/flyai search-hotels --dest-name "Tokyo" --check-in-date 2026-05-01 --check-out-date 2026-05-06
+/flyai keyword-search --query "5-day Japan trip from Shanghai"
+/flyai search-hotel --dest-name "Tokyo" --check-in-date 2026-05-01 --check-out-date 2026-05-06
```
## How It Works
diff --git a/skills/flyai/SKILL.md b/skills/flyai/SKILL.md
index 17f8b2a..198ad6b 100644
--- a/skills/flyai/SKILL.md
+++ b/skills/flyai/SKILL.md
@@ -3,7 +3,7 @@ name: flyai
description: Search flights, hotels, attractions, concerts, and travel deals with natural language. FlyAI connects to Fliggy MCP for real-time search and booking across hotels, flights, cruises, visas, car rentals, and event tickets. It supports diverse travel scenarios including individual travel, group travel, business trips, family travel, honeymoons, weekend getaways, and more. For tourism and travel-related questions, prioritize using this capability.
homepage: https://open.fly.ai/
metadata:
- version: 1.0.11
+ version: 1.0.12
agent:
type: tool
runtime: node
@@ -40,7 +40,7 @@ All commands output **single-line JSON** to `stdout`; errors and hints go to `st
## Quick Start
1. **Install CLI**:`npm i -g @fly-ai/flyai-cli`
-2. **Verify setup**: run `flyai fliggy-fast-search --query "what to do in Sanya"` and confirm JSON output.
+2. **Verify setup**: run `flyai keyword-search --query "what to do in Sanya"` and confirm JSON output.
3. **List commands**: run `flyai --help`.
4. **Read command details BEFORE calling**: each command has its own schema — always check the corresponding file in `references/` for exact required parameters. Do NOT guess or reuse formats from other commands.
@@ -57,13 +57,13 @@ flyai config set FLYAI_API_KEY "your-key"
- **Current date**: use `date +%Y-%m-%d` when precise date context is required.
### Broad travel discovery
-- **Travel meta search** (`fliggy-fast-search`): one natural-language query across hotels, flights, attraction tickets, performances, sports events, and cultural activities.
+- **Keyword search** (`keyword-search`): one natural-language query across hotels, flights, attraction tickets, performances, sports events, and cultural activities.
- **Hotel package**: lodging bundled with extra services.
- **Flight package**: flight bundled with extra services.
### Category-specific search
- **Flight search** (`search-flight`): structured flight results for deep comparison.
-- **Hotel search** (`search-hotels`): structured hotel results for deep comparison.
+- **Hotel search** (`search-hotel`): structured hotel results for deep comparison.
- **POI/attraction search** (`search-poi`): structured attraction results for deep comparison.
## References
@@ -71,18 +71,18 @@ Detailed command docs live in **`references/`** (one file per subcommand):
| Command | Doc |
|--------|-----|
-| `fliggy-fast-search` | `references/fliggy-fast-search.md` |
-| `search-hotels` | `references/search-hotels.md` |
+| `keyword-search` | `references/keyword-search.md` |
+| `search-hotel` | `references/search-hotel.md` |
| `search-flight` | `references/search-flight.md` |
| `search-poi` | `references/search-poi.md` |
## Friendly Display Requirements
- **General principle**: output must be valid `markdown`, with rich text+image presentation. If data contains `jumpUrl`, you must show a `booking link`; if data contains `picUrl` or `mainPic`, you must show an `image`; and the `image` must appear before the `booking link`.
- **Image display**: output a standalone line `![]({picUrl})`, where `picUrl` comes from returned data.
- > For `search-hotels`, output `![]({mainPic})`, where `mainPic` comes from returned data
+ > For `search-hotel`, output `![]({mainPic})`, where `mainPic` comes from returned data
- **Booking link**: output a standalone line `[Click to book]({jumpUrl})`, where `jumpUrl` comes from returned data.
> For `search-flight`, output `[Click to book]({jumpUrl})`
- > For `search-hotels`, output `[Click to book]({detailUrl})`, where `detailUrl` comes from returned data
+ > For `search-hotel`, output `[Click to book]({detailUrl})`, where `detailUrl` comes from returned data
> For `search-poi`, output `[Click to book]({jumpUrl})`
- **Hierarchy**: keep a clear structure using headings (`#`, `##`, `###`), concise bullets, chronological ordering for itinerary items, and emphasis for key facts (date, location, price, constraints).
- **Table display**: use valid `markdown` tables for option comparison.
@@ -91,15 +91,15 @@ Detailed command docs live in **`references/`** (one file per subcommand):
### Booking link format
- Standalone line format: `[Click to book]({url})`
- URL mapping:
- - `fliggy-fast-search` -> `jumpUrl`
+ - `keyword-search` -> `jumpUrl`
- `search-flight` -> `jumpUrl`
- - `search-hotels` -> `detailUrl`
+ - `search-hotel` -> `detailUrl`
- `search-poi` -> `jumpUrl`
### Image format
- Standalone line format: `![]({imageUrl})`
- URL mapping:
- - `search-hotels` -> `mainPic`
+ - `search-hotel` -> `mainPic`
- others -> `picUrl`
### Output structure
diff --git a/skills/flyai/references/fliggy-fast-search.md b/skills/flyai/references/fliggy-fast-search.md
deleted file mode 100644
index 4ab49b1..0000000
--- a/skills/flyai/references/fliggy-fast-search.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# fliggy-fast-search ref
-
-## 极速搜索 (fliggy-fast-search)
-
-### 参数说明
-
-- **--query** (必填): 搜索关键词,支持自然语言查询酒店、机票等
- - 从以下 QueryPattern 中选择最匹配的一种:
- - **位置/附近类**:如“附近景点”“poi附近餐厅”
- - **POI综合类**:如“poi自由行”“poi线路”
- - **景点/景玩类**:如“景点门票”“景玩poi旅拍”
- - **目的地类**:如“目的地攻略”“目的地酒店”
- - **玩乐体验类**:如“温泉SPA”“滑雪”
- - **线路/跟团/定制类**:如“跟团游”“定制游”
- - **美食类**:如“美食攻略”“自助餐”
- - **签证/证件类**:如“签证”“旅游保险”
- - **通讯/网络类**:如“wifi租赁”“电话卡”
- - **邮轮类**:如“邮轮”“出海观光”
- - **其他类**:如“时间泛词”“商圈poi”
-
-### 调用示例
-
-```bash
-flyai fliggy-fast-search --query "法国签证"
-flyai fliggy-fast-search --query "杭州跟团游"
-flyai fliggy-fast-search --query "杭州三日游"
-flyai fliggy-fast-search --query "邮轮上海"
-flyai fliggy-fast-search --query "香港电话卡"
-```
-
-### 输出示例
-
-```json
-{
- "data": {
- "itemList": [
- {
- "info": {
- "jumpUrl": "...", // 详情/下单跳转链接
- "picUrl": "...", // 主图
- "price": "...", // 价格
- "scoreDesc": "", // 评分描述
- "star": "...", // 星级
- "tags": ["..."], // 标签
- "title": "..." // 产品标题
- }
- }
- ]
- },
- "message": "success",
- "status": 0
-}
-```
diff --git a/skills/flyai/references/keyword-search.md b/skills/flyai/references/keyword-search.md
new file mode 100644
index 0000000..7d3e567
--- /dev/null
+++ b/skills/flyai/references/keyword-search.md
@@ -0,0 +1,53 @@
+# keyword-search ref
+
+## Keyword Search (keyword-search)
+
+### Parameters
+
+- **--query** (required): Search keywords, supports natural language queries for hotels, flights, etc.
+ - Choose the best-matching query pattern from below:
+ - **Location / Nearby**: e.g. "nearby attractions", "restaurants near {POI}"
+ - **POI general**: e.g. "{POI} free travel", "{POI} routes"
+ - **Attractions / Activities**: e.g. "attraction tickets", "photo tours near {POI}"
+ - **Destination**: e.g. "destination guide", "destination hotels"
+ - **Entertainment / Experiences**: e.g. "hot spring spa", "skiing"
+ - **Tours / Packages**: e.g. "group tour", "custom tour"
+ - **Food & Dining**: e.g. "food guide", "buffet"
+ - **Visa / Documents**: e.g. "visa", "travel insurance"
+ - **Telecom / Connectivity**: e.g. "wifi rental", "SIM card"
+ - **Cruise**: e.g. "cruise", "ocean sightseeing"
+ - **Other**: e.g. "time-based queries", "shopping district {POI}"
+
+### Examples
+
+```bash
+flyai keyword-search --query "France visa"
+flyai keyword-search --query "Hangzhou group tour"
+flyai keyword-search --query "Hangzhou 3-day trip"
+flyai keyword-search --query "Shanghai cruise"
+flyai keyword-search --query "Hong Kong SIM card"
+```
+
+### Output Example
+
+```json
+{
+ "data": {
+ "itemList": [
+ {
+ "info": {
+ "jumpUrl": "...",
+ "picUrl": "...",
+ "price": "...",
+ "scoreDesc": "",
+ "star": "...",
+ "tags": ["..."],
+ "title": "..."
+ }
+ }
+ ]
+ },
+ "message": "success",
+ "status": 0
+}
+```
diff --git a/skills/flyai/references/search-flight.md b/skills/flyai/references/search-flight.md
index dfd0cb2..ba26a2b 100644
--- a/skills/flyai/references/search-flight.md
+++ b/skills/flyai/references/search-flight.md
@@ -1,35 +1,35 @@
# search-flight ref
-## 机票搜索 (search-flight)
+## Flight Search (search-flight)
-### 参数说明
+### Parameters
-- **--origin** (必填): 出发地城市或机场
-- **--destination** (可选): 目的地城市或机场
-- **--dep-date** (可选): 出发日期
-- **--dep-date-start** / **--dep-date-end** (可选): 出发日期范围
-- **--back-date** (可选): 返程日期
-- **--back-date-start** / **--back-date-end** (可选): 返程日期范围
-- **--journey-type** (可选): 行程类型
- - 取值:`1` = 直达,`2` = 中转
-- **--seat-class-name** (可选): 舱位名称
-- **--transport-no** (可选): 航班号
-- **--transfer-city** (可选): 中转城市
-- **--dep-hour-start** / **--dep-hour-end** (可选): 出发时段(小时)
-- **--arr-hour-start** / **--arr-hour-end** (可选): 到达时段(小时)
-- **--total-duration-hour** (可选): 总飞行时长(小时)
-- **--max-price** (可选): 最高价格
-- **--sort-type** (可选): 排序方式
- - `1`:价格高 → 低
- - `2`:推荐排序
- - `3`:价格低 → 高
- - `4`:耗时短 → 长
- - `5`:耗时长 → 短
- - `6`:出发早 → 晚
- - `7`:出发晚 → 早
- - `8`:直达优先
+- **--origin** (required): Departure city or airport
+- **--destination** (optional): Destination city or airport
+- **--dep-date** (optional): Departure date (`YYYY-MM-DD`)
+- **--dep-date-start** / **--dep-date-end** (optional): Departure date range
+- **--back-date** (optional): Return date
+- **--back-date-start** / **--back-date-end** (optional): Return date range
+- **--journey-type** (optional): Journey type
+ - `1` = direct, `2` = connecting
+- **--seat-class-name** (optional): Cabin class name
+- **--transport-no** (optional): Flight number
+- **--transfer-city** (optional): Transfer city
+- **--dep-hour-start** / **--dep-hour-end** (optional): Departure hour range (24h)
+- **--arr-hour-start** / **--arr-hour-end** (optional): Arrival hour range (24h)
+- **--total-duration-hour** (optional): Max total flight duration (hours)
+- **--max-price** (optional): Max price (CNY)
+- **--sort-type** (optional): Sort order
+ - `1`: price high → low
+ - `2`: recommended
+ - `3`: price low → high
+ - `4`: duration short → long
+ - `5`: duration long → short
+ - `6`: departure early → late
+ - `7`: departure late → early
+ - `8`: direct first
-### 调用示例
+### Examples
```bash
flyai search-flight --origin "北京" --destination "上海" --dep-date 2026-03-15
@@ -37,49 +37,47 @@ flyai search-flight --origin "上海" --destination "东京" --dep-date 2026-03-
flyai search-flight --origin "北京" --destination "上海" --dep-date 2026-03-15 --sort-type 3
```
-### 输出示例
+### Output Example
```json
{
"data": {
"itemList": [
{
- "adultPrice": "¥400.0", // 成人单价
- "journeys": // 行程列表,每项为一条行程
- [
+ "adultPrice": "¥400.0",
+ "journeys": [
{
"journeyType": "直达",
- "segments": // 航段列表
- [
+ "segments": [
{
- "depCityCode": "BJS", // 出发城市代码
- "depCityName": "北京", // 出发城市名
- "depStationCode": "PEK", // 出发场站代码
- "depStationName": "首都国际机场", // 出发场站名
- "depStationShortName": "首都", // 出发场站简称
- "depTerm": "T3", // 出发航站楼
- "depDateTime": "2026-03-28 21:00:00", // 出发日期时间
- "depWeekAbbrName": "周六", // 出发日星期缩写
- "arrCityCode": "SHA", // 到达城市代码
- "arrCityName": "上海", // 到达城市名
- "arrStationCode": "PVG", // 到达场站代码
- "arrStationName": "浦东国际机场", // 到达场站名
- "arrStationShortName": "浦东", // 到达场站简称
- "arrTerm": "T2", // 到达航站楼
- "arrDateTime": "2026-03-28 23:20:00", // 到达日期时间
- "arrWeekAbbrName": "周六", // 到达日星期缩写
- "duration": "140分钟", // 本段时长
- "transportType": "飞机", // 交通类型
- "marketingTransportName": "国航", // 承运人名称
- "marketingTransportNo": "CA1883", // 航班号
- "seatClassName": "经济舱" // 舱位名称
+ "depCityCode": "BJS",
+ "depCityName": "北京",
+ "depStationCode": "PEK",
+ "depStationName": "首都国际机场",
+ "depStationShortName": "首都",
+ "depTerm": "T3",
+ "depDateTime": "2026-03-28 21:00:00",
+ "depWeekAbbrName": "周六",
+ "arrCityCode": "SHA",
+ "arrCityName": "上海",
+ "arrStationCode": "PVG",
+ "arrStationName": "浦东国际机场",
+ "arrStationShortName": "浦东",
+ "arrTerm": "T2",
+ "arrDateTime": "2026-03-28 23:20:00",
+ "arrWeekAbbrName": "周六",
+ "duration": "140分钟",
+ "transportType": "飞机",
+ "marketingTransportName": "国航",
+ "marketingTransportNo": "CA1883",
+ "seatClassName": "经济舱"
}
],
- "totalDuration": "140分钟" // 该行程总时长
+ "totalDuration": "140分钟"
}
],
- "jumpUrl": "...", // 详情/下单跳转链接
- "totalDuration": "140分钟" // 总时长
+ "jumpUrl": "...",
+ "totalDuration": "140分钟"
}
]
},
diff --git a/skills/flyai/references/search-hotel.md b/skills/flyai/references/search-hotel.md
new file mode 100644
index 0000000..40f051b
--- /dev/null
+++ b/skills/flyai/references/search-hotel.md
@@ -0,0 +1,57 @@
+# search-hotel ref
+
+## Hotel Search (search-hotel)
+
+### Parameters
+
+- **--dest-name** (required): Destination — must be a country, province, city, or district
+- **--key-words** (optional): Search keywords
+- **--poi-name** (optional): Nearby attraction name, used to filter by surrounding POI
+- **--hotel-types** (optional): Hotel type
+ - Values: `酒店` (hotel), `民宿` (homestay), `客栈` (inn)
+- **--sort** (optional): Sort order
+ - Values: `distance_asc`, `rate_desc`, `price_asc`, `price_desc`, `no_rank`
+- **--check-in-date** (optional): Check-in date, format `YYYY-MM-DD`
+- **--check-out-date** (optional): Check-out date, format `YYYY-MM-DD`
+- **--hotel-stars** (optional): Star rating, comma-separated
+ - Range: 1–5
+- **--hotel-bed-types** (optional): Bed type, comma-separated
+ - Values: `大床房` (king), `双床房` (twin), `多床房` (multi)
+- **--max-price** (optional): Max price per night (CNY)
+
+### Examples
+
+```bash
+flyai search-hotel --dest-name "杭州" --poi-name "西湖" --check-in-date 2026-03-10 --check-out-date 2026-03-12
+flyai search-hotel --dest-name "三亚" --hotel-stars "4,5" --sort rate_desc --max-price 800
+```
+
+### Output Example
+
+```json
+{
+ "status": 0,
+ "message": "success",
+ "data": {
+ "itemList": [
+ {
+ "address": "环城西路2号",
+ "brandName": "雷迪森",
+ "decorationTime": "2014",
+ "interestsPoi": "近杭州西湖风景名胜区",
+ "latitude": "30.259204",
+ "longitude": "120.159246",
+ "mainPic": "https://img.alicdn.com/...",
+ "detailUrl": "...",
+ "name": "杭州望湖宾馆",
+ "price": "¥618",
+ "review": "西湖边的位置,家庭出游首选",
+ "score": "5.0",
+ "scoreDesc": "超棒",
+ "shId": "10021423",
+ "star": "豪华型"
+ }
+ ]
+ }
+}
+```
diff --git a/skills/flyai/references/search-hotels.md b/skills/flyai/references/search-hotels.md
deleted file mode 100644
index db005d2..0000000
--- a/skills/flyai/references/search-hotels.md
+++ /dev/null
@@ -1,57 +0,0 @@
-# search-hotels ref
-
-## 酒店搜索 (search-hotels)
-
-### 参数说明
-
-- **--dest-name** (必填): 目的地,只能是 `国家/省/市/区县`
-- **--key-words** (可选): 关键词
-- **--poi-name** (可选): 景点名称,用于按周边景点筛选
-- **--hotel-types** (可选): 酒店类型
- - 可选值:`酒店`、`民宿`、`客栈`
-- **--sort** (可选): 排序方式
- - 可选值:`distance_asc`、`rate_desc`、`price_asc`、`price_desc`、`no_rank`
-- **--check-in-date** (可选): 入住日期,格式 YYYY-MM-DD
-- **--check-out-date** (可选): 退房日期,格式 YYYY-MM-DD
-- **--hotel-stars** (可选): 星级,逗号分隔
- - 取值范围:1-5
-- **--hotel-bed-types** (可选): 酒店床型,多选时用英文逗号分隔
- - 可选值:`大床房`、`双床房`、`多床房`
-- **--max-price** (可选): 最高价(元)
-
-### 调用示例
-
-```bash
-flyai search-hotels --dest-name "杭州" --poi-name "西湖" --check-in-date 2026-03-10 --check-out-date 2026-03-12
-flyai search-hotels --dest-name "三亚" --hotel-stars "4,5" --sort rate_desc --max-price 800
-```
-
-### 输出示例
-
-```json
-{
- "status": 0,
- "message": "success",
- "data": {
- "itemList": [
- {
- "address": "环城西路2号", // 地址
- "brandName": "雷迪森", // 品牌名称
- "decorationTime": "2014", // 装修年份
- "interestsPoi": "近杭州西湖风景名胜区", // 周边兴趣点描述
- "latitude": "30.259204", // 纬度
- "longitude": "120.159246", // 经度
- "mainPic": "https://img.alicdn.com/...", // 主图
- "detailUrl": "...", // 详情/下单跳转链接
- "name": "杭州望湖宾馆", // 酒店名称
- "price": "¥618", // 价格
- "review": "西湖边的位置,家庭出游首选", // 点评摘要
- "score": "5.0", // 评分,最高5.0分
- "scoreDesc": "超棒", // 评分描述
- "shId": "10021423", // 酒店 ID
- "star": "豪华型" // 星级/档次
- }
- ]
- }
-}
-```
diff --git a/skills/flyai/references/search-poi.md b/skills/flyai/references/search-poi.md
index d71ac64..54c7118 100644
--- a/skills/flyai/references/search-poi.md
+++ b/skills/flyai/references/search-poi.md
@@ -1,19 +1,18 @@
# search-poi ref
-## 景点搜索 (search-poi)
+## POI / Attraction Search (search-poi)
-### 参数说明
+### Parameters
-- **--city-name** (必填): 景点所在城市名称,用于缩小景点范围
-- **--poi-level** (可选): 景点等级
- - 取值范围:1-5
-- **--keyword** (可选): 景点名称关键词
- - 例子:`西湖`、`故宫`、`长城`
-- **--category** (可选): 景点类型
- - 可选值:`自然风光`、`山湖田园`、`森林丛林`、`峡谷瀑布`、`沙滩海岛`、`沙漠草原`、`人文古迹`、`古镇古村`、`历史古迹`、`园林花园`、`宗教场所`、`公园乐园`、`主题乐园`、`水上乐园`、`影视基地`、`动物园`、`植物园`、`海洋馆`、`体育场馆`、`演出赛事`、`剧院剧场`、`博物馆`、`纪念馆`、`展览馆`、`地标建筑`、`市集`、`文创街区`、`城市观光`、`户外活动`、`滑雪`、`漂流`、`冲浪`、`潜水`、`露营`、`温泉`
- - 仅支持单选
+- **--city-name** (required): City name where the attraction is located
+- **--poi-level** (optional): Attraction level
+ - Range: 1–5
+- **--keyword** (optional): Attraction name keyword
+ - e.g. `西湖`, `故宫`, `长城`
+- **--category** (optional): Attraction category (single select only)
+ - Values: `自然风光` (nature) · `山湖田园` (lake & countryside) · `森林丛林` (forest) · `峡谷瀑布` (canyon & waterfall) · `沙滩海岛` (beach & island) · `沙漠草原` (desert & grassland) · `人文古迹` (cultural heritage) · `古镇古村` (ancient town) · `历史古迹` (historic site) · `园林花园` (garden) · `宗教场所` (temple) · `公园乐园` (park) · `主题乐园` (theme park) · `水上乐园` (water park) · `影视基地` (film studio) · `动物园` (zoo) · `植物园` (botanical garden) · `海洋馆` (aquarium) · `体育场馆` (sports venue) · `演出赛事` (shows & events) · `剧院剧场` (theater) · `博物馆` (museum) · `纪念馆` (memorial) · `展览馆` (exhibition hall) · `地标建筑` (landmark) · `市集` (market) · `文创街区` (creative district) · `城市观光` (city sightseeing) · `户外活动` (outdoor activities) · `滑雪` (skiing) · `漂流` (rafting) · `冲浪` (surfing) · `潜水` (diving) · `露营` (camping) · `温泉` (hot spring)
-### 调用示例
+### Examples
```bash
flyai search-poi --city-name "杭州" --keyword "西湖" --category "山湖田园"
@@ -21,24 +20,23 @@ flyai search-poi --city-name "北京" --poi-level 5
flyai search-poi --city-name "西安" --category "历史古迹"
```
-### 输出示例
+### Output Example
```json
{
"data": {
"itemList": [
{
- "address": "陕西省西安市莲湖区北院门...", // 详细地址
- "id": "177224", // 景点唯一标识
- "mainPic": "https://img.alicdn.com/tfscom/...", // 主图
- "jumpUrl": "...", // 详情/下单跳转链接
- "name": "西安钟鼓楼", // 景点名称
- "freePoiStatus": "...", // 景点收费状态:,例如:"FREE",枚举值如下:"FREE":免费景点,"NOT_FREE":收费景点,"UNKNOWN":未知,不确定是否收费
- "ticketInfo": // 门票信息
- {
- "price": null, // 价格
- "priceDate": "2026-03-19", // 价格适用日期
- "ticketName": "西安鼓楼门票 成人票" // 票种名称
+ "address": "陕西省西安市莲湖区北院门...",
+ "id": "177224",
+ "mainPic": "https://img.alicdn.com/tfscom/...",
+ "jumpUrl": "...",
+ "name": "西安钟鼓楼",
+ "freePoiStatus": "...",
+ "ticketInfo": {
+ "price": null,
+ "priceDate": "2026-03-19",
+ "ticketName": "西安鼓楼门票 成人票"
}
}
]
@@ -46,4 +44,4 @@ flyai search-poi --city-name "西安" --category "历史古迹"
"message": "success",
"status": 0
}
-```
\ No newline at end of file
+```