Flight link on Trip.com
flight_linkMakes a link to a Trip.com search for a route and dates, where the traveller can compare live prices from airlines and agencies and book. The link carries Got a Plan's Travelpayouts partner ID, so Got a Plan may earn a commission on a booking; the price is the same either way.
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": {
"from": "<from>",
"to": "<to>",
"depart": "<depart>"
},
"name": "flight_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| adults | No | ||
| depart | Yes | ||
| return | No | ||
| infants | No | Children under 2, flying on a lap | |
| children | No | Children aged 2 to 17 travelling besides the adults |