Query Train Tickets
query_train_tickets查询中国大陆12306火车票余票信息。参数from_city出发城市/车站中文名,to_city到达城市/车站中文名,date出发日期格式YYYY-MM-DD;留空默认明天。
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_city": "<from_city>",
"to_city": "<to_city>"
},
"name": "query_train_tickets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | 出发日期,格式 YYYY-MM-DD;留空默认明天 | |
| to_city | Yes | 到达城市或车站中文名,如 "北京"、"上海虹桥" | |
| from_city | Yes | 出发城市或车站中文名,如 "青岛"、"北京南" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||