跳到正文
TakoAPI
返回技能列表

12306

由 kirorab 提供

DevOps & Cloud
1.2k下载量由 clawskills.sh 提供
4星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Query China Railway 12306 for train schedules, remaining tickets, and station info.

描述

该技能的功能

Queries China Railway 12306 for train schedules, remaining ticket counts, and station information. Supports filtering by train type, departure/arrival time windows, travel duration, and seat class. Data comes directly from the official 12306 API with no authentication required.

Queries the official 12306 API directly, so results reflect real-time seat availability without requiring an account or third-party service.

何时使用

  • Checking G-train availability between Beijing and Shanghai for tomorrow
  • Finding morning high-speed trains with second-class seats available
  • Looking up the correct station code for a city before booking
  • Filtering trains that arrive before a specific time for a business trip
  • Comparing travel options across multiple train types on a given date

示例工作流

输入

User asks: What G-trains run from Shanghai to Hangzhou tomorrow morning with second-class seats available?

智能体
  1. 1

    Identify origin (上海), destination (杭州), date, and constraints from the request

  2. 2

    Run query with -t G --depart 06:00-12:00 --seat ze --available and tomorrow's date

  3. 3

    Parse the markdown table output returned to stdout

  4. 4

    Present the matching train numbers, departure times, arrival times, and remaining seat counts

输出

A filtered list of G-trains with morning departures, travel duration, and available second-class seat counts

安装

clawhub install kirorab/12306

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接