규정 개정본 비교
compare_rule_versionsCompares two versions of a university rule, including article text, appendix tables, cell merges, and embedded images, and reports extraction diagnostics when original HWP parsing fails.
Instructions
원본 HWP의 조문·별표와 표의 셀·병합 구조, 그림 파일 변경을 비교합니다. 원문 실패 시 HTML 대체 여부와 구체적인 추출 진단을 표시합니다. to_history_id 생략 시 최신 개정본입니다.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"law_id": "<law_id>",
"from_history_id": "<from_history_id>"
},
"name": "compare_rule_versions"
}
}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 | 실패 시 구조화 오류 |