通过Fliggy MCP的FlyAI search-hotel实现酒店搜索、候选比较和预订交接,支持目的地、入住日期、POI等结构化筛选条件
Provide hotel discovery, comparison, and booking handoff using the FlyAI CLI command search-hotel, backed by Fliggy MCP. Outputs are decision-ready when you respect live JSON fields and the flag schema in references/search-hotel.md (single source of truth).
npm i -g @fly-ai/flyai-cliflyai config set FLYAI_API_KEY "your-key" (keep secrets out of logs).flyai search-hotel --help for flag discovery).search-hotel#Extract and confirm (ask only the minimum if missing):
--dest-name (country / province / city / district).--check-in-date / --check-out-date ( YYYY-MM-DD).--max-price (CNY per night cap).--hotel-stars, --hotel-bed-types.--hotel-types ( 酒店 / 民宿 / 客栈).--poi-name plus --dest-name.--key-words.--sort ( price_asc / price_desc / rate_desc / distance_asc / no_rank).references/search-hotel.md does not define.references/search-hotel.md and mirror exact flag names—there is no separate “prime tags” or tag-cache step in search-hotel.--dest-name.flyai search-hotel flags#flyai search-hotel … per the reference Examples and parameter list.¥618); do not invent currency rules not present in data.itemList, follow Error handling below.data.itemList (see output example in references/search-hotel.md).mainPic, detailUrl, name, address, price, score, star, review, interestsPoi, etc. when present.getHotelDetail call in this skill. Deeper room-level matrices like full rate-plan grids are only available if they appear inside the JSON you already received; otherwise direct the user to detailUrl for authoritative booking pages.search-hotel (tighter dates, POI, or keywords)—do not fabricate APIs.Always give:
detailUrl), what to double-check on the supplier page, and 2–4 final confirmation questions if anything is still ambiguous.interestsPoi)(若存在)[Click to book]({detailUrl})(若存在)detailUrl.itemList tables unchanged.SurfaceLocationsearch-hotel flags, examples, output shape**references/search-hotel.md** (authoritative)
references/search-hotel.md; ask the user when required fields are unclear.status / message; fix flags vs retry on transient errors only.HookMeaning ( search-hotel only)POI + destination--poi-name + --dest-name for “near landmark” stays.三态住宿--hotel-types: 酒店 / 民宿 / 客栈 in one run.CNY nightly cap--max-price for per-night budget ceilings.Agent-first JSONmainPic + detailUrl for fast Markdown cards— no extra scraper stack in this bundle.