12306
SKILL.md
12306 Train Query
Query train schedules and remaining tickets from China Railway 12306. Output is an HTML file.
Query Tickets
node {baseDir}/scripts/query.mjs <from> <to> [options]
The command prints the output file path to stdout and query info to stderr.
Examples
# All trains from Beijing to Shanghai (defaults to today)
node {baseDir}/scripts/query.mjs 北京 上海