I Ching
v0.2.1i-ching — cast the I Ching with coins or yarrow stalks, and look up any of the 64 hexagrams (King…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
cast_i_ching
Cast an I Ching hexagram using the traditional three-coin method (default) or the classical yarrow-stalk method, per James Legge's 1899 translation. Generates six line values (6/7/8/9) with the method’s real probabilities (coins: 1/8, 3/8, 3/8, 1/8 for 6/7/8/9; yarrow: 1/16, 5/16, 7/16, 3/16), builds the primary hexagram, lists any changing lines with their texts, and derives the resulting hexagram (null when nothing changes). Pass `seed` back to replay the exact same cast. The hexagram and line texts are traditional meanings for the calling agent to interpret in light of its own question  
| Parameter | Type | Description |
|---|---|---|
method | string | Divination method. "coins" (default): three-coin toss, six times. "yarrow": classical yarrow-stalk division, with different (narrower) probabilities. |
question | string | Optional question being asked of the oracle. Echoed back verbatim in the result; never interpreted by this tool. |
seed | string | Optional seed for a reproducible cast. Omit for real randomness; the seed used is always returned so the cast can be replayed. |
get_hexagram
Look up one of the 64 I Ching hexagrams (King Wen sequence) by its number (1-64) or by name (Chinese, pinyin, or the English gloss used in this pack). Returns the full hexagram: binary lines, upper/lower trigram, judgment, image, all six line texts, and keywords, each in original wording referencing James Legge’s 1899 translation as the public-domain source.
| Parameter | Type | Description |
|---|---|---|
name | string | Hexagram name: Chinese characters, pinyin (with or without tone marks), or English gloss, e.g. "Qian", "乾", "Pure Yang". |
number | number | King Wen hexagram number, 1-64. |
search_hexagrams
Search the 64 I Ching hexagrams (King Wen sequence) by a free-text query matched against name (Chinese, pinyin, English gloss) and keywords. Returns every matching hexagram as a short summary (number, names, binary lines); use get_hexagram for the full text of any match.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search text, e.g. "patience", "thunder", "withdrawal", "Qian". |