compare_rule_versions
Compare two versions of a regulation by article to identify changes. Specify a start history ID and optionally an end ID; omit the end to compare against the latest revision.
Instructions
같은 규정의 두 HISTORY_ID를 조문 단위로 비교합니다. to_history_id를 생략하면 최신 개정본과 비교합니다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| law_id | Yes | LAW_ID | |
| article | No | 선택 조문. 예: 제10조의2, 부칙 제2조 | |
| max_changes | No | 본문에 표시할 최대 변경 조문 수. 기본 20, 최대 50 | |
| to_history_id | No | 비교 종료 HISTORY_ID. 생략하면 최신 | |
| from_history_id | Yes | 비교 시작 HISTORY_ID | |
| include_appendices | No | HWP 별표·서식 텍스트도 비교(기본 true) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | 도구 실행 성공 여부 | |
| data | No | 성공 시 구조화 결과 | |
| tool | Yes | 실행한 도구 이름 | |
| error | No | 실패 시 구조화 오류 |