get_law_versions
รายการฉบับแก้ไขทั้งหมดของมาตราหนึ่ง เรียงเก่า→ใหม่ — ใช้หา timeline_code ไปเรียก get_law_document เมื่อต้องการถ้อยคำตามฉบับที่ใช้บังคับในอดีต (search_law/get_law_document คืนฉบับล่าสุดเป็นค่าเริ่มต้น). ไม่นับโควตา · อ่านอย่างเดียว
อ่านผล: versions=[{timeline_code, version_seq, is_current}] นับเฉพาะฉบับที่มีมาตรานี้ในตัวบทหลัก · count=0 ไม่ได้แปลว่าไม่มีเนื้อหานี้ในกฎหมายฉบับนี้ — อาจอยู่ในฉบับแก้ไขที่แนบท้าย ให้ตรวจต่อด้วย verify_citation/get_law_document (คืน unit_scope บอกว่ามาจากฉบับใด)
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_code": "<law_code>",
"unit_label": "<unit_label>"
},
"name": "get_law_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| law_code | Yes | รหัสกฎหมาย จาก citation.law_code ของผล search_law | |
| unit_label | Yes | ใช้ citation.unit_label ของผล search_law เช่น "มาตรา 288" — ต้องมีคำนำหน้า "มาตรา"/"ข้อ" (เลขเปล่าได้ผลว่าง) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| law_code | Yes | ||
| versions | Yes | ||
| disclaimer | Yes | ||
| unit_label | Yes | ||
| attribution | Yes |