Search Legal
search_legalWHEN the relevant law is unknown, search Indonesian legal text with validated filters. Budget: limit <= 20 results, approximately <= 30KB. If a law is known, prefer resolve_law then get_law_context/read_law.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Exact enactment year filter. If also given with year_from/year_to, year takes precedence. | |
| limit | No | Maximum results, clamped to 1-20. | |
| query | Yes | Indonesian legal search terms or topic. Required. | |
| law_id | No | Optional canonical law_id for within-law search. When set, other filters are not applicable. | |
| region | No | Region/locality filter for LOCAL regulations (Perda/Pergub/Perbup/Perwali) — a province, city, or regency, e.g. 'DKI Jakarta', 'Jawa Barat', 'Kota Bekasi'. Pass this whenever the user names a place for a regional regulation. | |
| status | No | Optional status filters: berlaku, diubah, dicabut, tidak_berlaku. | |
| year_to | No | Inclusive end year filter. | |
| year_from | No | Inclusive start year filter. | |
| issuing_body | No | Optional issuing body filter, e.g. DPR, Presiden, OJK. | |
| regulation_types | No | Optional list of regulation types, e.g. ['UU', 'PP'] or ['Peraturan Pemerintah']. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||