query-tickets
Search for available train tickets in China by entering departure station, arrival station, and travel date to view schedules, seat availability, and journey details.
Instructions
官方12306余票/车次/座席/时刻一站式查询。输入出发站、到达站、日期,返回所有可购车次、时刻、历时、各席别余票等详细信息。支持中文名、三字码。
【智能筛选指南】返回结果通常包含出发/到达城市的所有相关车站(如北京/北京西/北京南)。请根据用户输入语境灵活处理:
用户仅输入城市名(如'九江'):请展示所有相关站点的车次,不要过滤。
用户指定具体车站(如'九江站'):优先展示匹配车站的车次,但若其他同城车站有更优方案(如时间更短、有票),也应作为补充选项提供。 请避免机械地仅通过字符串匹配过滤车次,以免遗漏用户可能感兴趣的出行方案。
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_station": "<from_station>",
"to_station": "<to_station>",
"train_date": "<train_date>"
},
"name": "query-tickets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_station | Yes | 出发车站名称 | |
| to_station | Yes | 到达车站名称 | |
| train_date | Yes | 出发日期,格式:YYYY-MM-DD |