Lookup hexagram by line pattern - I-Ching binary lookup API
get_iching_hexagrams_lookupFind an I-Ching hexagram by its binary line pattern. Provide 6 digits (0 or 1) representing broken (yin) and solid (yang) lines from bottom to top. Use this for custom divination interfaces where users input their own line configurations, or to find hexagrams matching specific trigram combinations. Example: "111111" returns Hexagram 1 (The Creative), "000000" returns Hexagram 2 (The Receptive).
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lines": "111111"
},
"name": "get_iching_hexagrams_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English. | en |
| lines | Yes | Six-digit binary pattern (0=yin/broken, 1=yang/solid) from bottom to top. | |
| compact | No | Set true for the same data in a compact shape: arrays of same-shaped objects arrive columnar as {"__cols":[names],"__rows":[[values]]}. Lossless, typically 40 to 52 percent fewer tokens. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | ||
| binary | Yes | ||
| number | Yes | ||
| pinyin | Yes | ||
| symbol | Yes | ||
| chinese | Yes | ||
| english | Yes | ||
| judgment | Yes | ||
| lowerTrigram | Yes | ||
| upperTrigram | Yes | ||
| changingLines | Yes | ||
| interpretation | Yes |