Thea

v1.3.6
org.thealibrary/thea Checked 4 days ago Published 16 days ago

A library people fill and AIs read: the latest sourced facts AI doesn't know yet.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

fetch Fetch Thea entry (generic)

Generic connector fetch: the full Thea entry for an id from search, as Markdown text (fields, links, recent records, sources, licence). thea_entry returns the same entry as JSON.

ParameterTypeDescription
id *stringEntry id

thea_find Find in a Thea region

Browse by conditions when you have no name. Questions like 'camping YouTubers who posted a new video recently' or 'hotels in 서귀포' cannot be answered by thea_search. Each filter multiplies: more filters, narrower list; subject alone is broad. Rules: 1. If the question names an area, always pass inside. Without it the results are nationwide. 2. subject 920 (restaurants) also returns companies that run restaurants. Add category=장소 to get shops only. 3. For choosing questions ('best places', 'a good hotel') add sort=rating. 4. For news or recent periods ('yesterday's news', 'since August…

ParameterTypeDescription
added_sincestringEntries added to Thea on or after YYYY-MM-DD (Korea date), whatever their event date; newest added first, scheduled events included. Without category it returns records. Combine with since if needed.
categorystringExact Korean values, comma-separated: 인물, 단체, 작품, 장소, 사건, 제품, 게임. Restaurants, cafes and lodging are subject codes, not categories.
countrystringCountry (Japan or 일본). Pass it for places outside Korea.
cuisinestringRestaurant type: an exact value (치킨, 중국집, 횟집 … https://thealibrary.org/static/cuisines.json), an everyday word (중식, 고깃집, 술집, 초밥 …), or a dish name (갈비찜, 물íš…
fieldstringkey=value, joined with ';' (value * = any). e.g. girl groups: category=단체, field=group_type=걸그룹; ballad singers: category=인물, field=genre=발라드. Keys: 인물 gender, occupation, nati…
insidestringArea to search inside: an id from thea_search (best; names repeat, e.g. 중구), the official Korean name even in English questions (서귀포시, 명일동), or abroad an ISO 3166-2 code (JP-13). If…
limitintegerMax results, default and max 20.
namestringWords the name (or alias, English name) contains, in order, e.g. 'ikan bakar'. Use for partial names; thea_search needs the full name. With since it also searches record summaries.
petstringy = pets allowed, n = not. Copy each place's conditions (weight limit, cage) from 방문 정보 as written.
sincestringRecords dated on or after YYYY-MM-DD. Thea has records newer than your training data; never refuse a date as future. Only dated records (releases, news, awards) match. Past results come newest first;…
sortstringUse for 'best/good' questions. rating: well-rated first, many 별로예요 last. Each result shows 좋아요/보통/별로예요 counts; mention when counts are small.
subjectintegerSubject code; a parent includes its children (1200 Travel includes 1210 lodging, 1240 camping). Top level: 100 Humanities, 200 History, 300 Society, 400 Science, 500 Technology, 600 Industry & Busines…

thea_entry Read a Thea entry

Full view of one entry by id (from thea_search or thea_find): all fields, its connections (each with an id; for an area, what lies inside is only counted in places_inside, list it with thea_find inside=id), and its satellites: dated events (albums, awards, appearances), newest first, 5 by default, with satellites_total per type. To go deeper, call it again with an id from the result (a connection, a satellite, or a place, person or organization in a satellite's places, featuring or orgs); never search the name again. id null means it is not in Thea; do not search it. A satellite opens in full,…

ParameterTypeDescription
planet_id *stringEntry id from thea_search, thea_find, or any id inside a previous result. An exact name also works, but prefer the id: names can be shared.
flowbooleanAlso return flow: this entry's dated records as a git-log-graph text, oldest first, with branches for entries named in them (featuring, orgs) and their later records. A branch is not always the same s…
flow_beforestringWith flow=true: about 20 records dated before this day (YYYY-MM-DD), to read further back. Take the value from flow_more.flow_before of the previous result.
satellite_typestringList only this satellite type, e.g. 음반, 새 영상, 수상. Values are Korean, as returned in satellites_total.
satellitesintegerHow many satellites to list, newest first. Default 5, maximum 50.