Korean Government Documents (HWPX)
v0.6.3Korean government reports, press releases and official drafts as HWPX in each agency's format
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_writing_guide
원고를 공문서 구조 JSON으로 바꿀 때 지켜야 할 작성 규칙과 스키마·예시. build_document 전에 먼저 확인한다. 보도자료를 쓸 때는 doc_type='press_release'와 ministry를 주면 작성 방법(리드·제목·인용·숫자·쉬운 말)과 사실 메모 양식, 기관별 가상 예시를 함께 준다. doc_type: 'report'(보고서) | 'press_release'(보도자료) | 'official'(기안문·시행문, 별지 제1호서식 — 결재란·문서번호·연락처 스키마와 예시 포함) | 'auto'(보고서·보도자료 둘 다 + 판단 기준). ministr…
| Parameter | Type | Description |
|---|---|---|
doc_type | string | |
ministry | string | |
style | string |
check_structure
구조 JSON을 만들기 전에 점검만 한다(파일 생성 없음): 필수 필드, 알 수 없는 블록, text 속 기호, 계층 건너뜀, □ 두 문장 이상, 보고서 명사형 종결이 아닌 문장, 긴 제목 등. structure는 JSON 문자열로 줘도 된다. 보도자료를 ministry와 함께 점검하면 작성 점검(E1~E18: 리드·제목·인용·숫자·쉬운 말 등)을 추가로 수행한다. target_pages: 목표 본문 쪽수(예: 1). 주면 분량을 재서 넘침·덜 참·붙임 없음을 경고. report_kind: 'standard'(기본, 일반 보고서 서ì‹…
| Parameter | Type | Description |
|---|---|---|
structure * | ||
doc_type | string | |
ministry | string | |
report_kind | string | |
style | string | |
target_pages | integer |
draft_press_structure
사실 메모를 보도자료 구조 JSON 초안으로 옮긴다. facts는 산문이 아니라 JSON 객체(또는 그 문자열)이며, 필드는 get_writing_guide(doc_type='press_release')의 press_writing.facts_template을 따른다 (headline, release, who, when, what 또는 lead, background, points, numbers, plan, quote, appendix, contact; 설명·해명자료는 kind, issue, position, grounds). 예: {"headline": "○○ 시행", "release": "2026. 11. 3.(화) 조간", "who": "○○부(장관 ○○○)", "when": "11월 3일(화)", "what": "○○를 시행한다", "points": [".…
| Parameter | Type | Description |
|---|---|---|
facts * | ||
ministry | string |
list_ministries
지원 기관과 문서 종류별 지원 여부를 JSON 배열 하나(문자열)로 돌려준다: [{기관, 보고서, 보도자료, 기안문, 보도자료_본문방식}, ...]. 보고서: 기관 규칙(42곳) 또는 공통 규칙, 보도자료: 52개 기관, 기안문: rules_official/_공통.json. 보고서는 기관을 비우거나 '공통'으로 하면 기관 간 공통 서식으로 만든다. 기안문은 기관 지정 없이 공통 서식으로만 지원.
get_rules
기관·문서 종류별 서식 규칙값: 계층별 기호·기호 앞 공백·글꼴·크기·줄 간격, 계층 사이 빈 줄 크기, 보고서는 제목 상자·표 머리 규칙 포함. ministry를 비우면 보고서 공통 규칙. 기안문(doc_type='official')은 rules_official/_공통.json 값만 반환(기관 지정 없음).
| Parameter | Type | Description |
|---|---|---|
doc_type | string | |
ministry | string |
build_document
보고서·보도자료(보도참고·설명·해명자료 포함)·기안문을 기관 서식 HWPX(한글 파일)로 만든다. 구조 JSON을 기관 서식 HWPX로 만든다(외부 전송 없음, 모두 로컬). 구조는 get_writing_guide 규칙대로 사용자 AI가 작성한다. structure는 JSON 문자열로 줘도 된다. doc_type='report': {title, date, dept, body, appendix} — ministry를 비우면 공통 서식(기관명 칸 비움). doc_type='press_release': {release, distribute, title, subtitles, body, appendix, contact} — ministry 필수. doc_type='official'…
| Parameter | Type | Description |
|---|---|---|
structure * | ||
doc_type | string | |
export_markdown | boolean | |
logo_path | string | |
ministry | string | |
out_path | string | |
placeholder_contact | boolean | |
polish | boolean | |
report_kind | string | |
slogan_path | string | |
style | string | |
target_pages | integer |
build_from_structure
build_document와 같다(별칭). structure는 JSON 문자열로 줘도 된다.
| Parameter | Type | Description |
|---|---|---|
structure * | ||
doc_type | string | |
export_markdown | boolean | |
logo_path | string | |
ministry | string | |
out_path | string | |
placeholder_contact | boolean | |
polish | boolean | |
report_kind | string | |
slogan_path | string | |
style | string | |
target_pages | integer |