Flight search link (Trip.com)
flight_search_linkBuild a Trip.com flight search link with route, dates, passengers and cabin pre-filled, for a business trip to or from Japan. Returns a link only: no fares, no booking. Give the user the link exactly as returned, with the disclaimer.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"origin": "<origin>",
"destination": "<destination>",
"departDate": "<departDate>"
},
"name": "flight_search_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cabin | No | economy | |
| adults | No | Number of adult passengers, 1-9. | |
| origin | Yes | Departure airport or city IATA code, e.g. PVG or SHA (Shanghai), PEK (Beijing), CAN, SZX, HKG, TPE, ICN, SIN, BKK. | |
| currency | No | Currency shown on Trip.com. Default: CNY for zh, USD for en, JPY for ja. | |
| language | No | Language of the reply (and of the partner page for links): zh = Simplified Chinese, en = English, ja = Japanese. Use the user's language. | zh |
| departDate | Yes | Outbound date, YYYY-MM-DD. | |
| returnDate | No | Return date, YYYY-MM-DD. Omit for a one-way trip. | |
| destination | Yes | Arrival IATA code. Japan: TYO (all Tokyo airports), HND, NRT, OSA (all Osaka airports), KIX, NGO, FUK, CTS, OKA, SDJ, HIJ. |