get-station-code-by-names
get-station-code-by-namesConvert Chinese railway station names into station codes for 12306 ticket booking. Use this tool to prepare station_code parameters when users specify departure or arrival stations by name.
Instructions
通过具体的中文车站名查询其 station_code 和车站名。此接口主要用于在用户提供具体车站名作为出发地或到达地时,为接口准备 station_code 参数。
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": {
"stationNames": "<stationNames>"
},
"name": "get-station-code-by-names"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stationNames | Yes |