문서 전문 조회
onegov_get_documentRetrieve the full text, attachments, related laws, and related documents of a Korean government document by its UUID from search results.
Instructions
문서 id로 전문(본문)과 첨부·관련법령·연관문서를 가져온다. id는 onegov_search 결과의 id 필드(UUID)다.
Args:
id (string, 필수): 문서 UUID.
max_body_chars (number, 기본 8000, 최대 40000): 본문 최대 길이. 길면 잘리고 안내가 붙는다.
response_format ('markdown'|'json', 기본 markdown)
Returns: markdown: 제목 · 메타(기관/발행일/원문링크/공공누리 유형/관련법령) · 본문 · 첨부 · 연관 문서. json: { id, doc_type, title, summary, body, ministry_name, published_at, source_url, kogl_type, kogl_notice, attachments[], law_ref[], region, links{related_by_law[], same_ministry_recent[]} }
Examples:
검색 후 "이 공고 신청 자격 알려줘" → 해당 결과의 id로 호출
쓰지 말 것: 아직 문서를 특정하지 못했을 때(→ onegov_search 먼저)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | 문서 UUID (onegov_search 결과의 id) | |
| max_body_chars | No | 본문 최대 길이 | |
| response_format | No | 출력 형식. 'markdown'은 사람이 읽기 좋은 요약(기본값), 'json'은 API 원본에 가까운 구조화 데이터. | markdown |