legalize_get_law
Retrieve a law's metadata and full text by country code and law ID, optionally at a specific historical version.
Instructions
Fetch a law's metadata and full text by id (optionally at a historical commit).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | No | optional commit SHA for a historical version (from ``legalize_list_reforms``). | |
| law_id | Yes | the filename stem (e.g. ``"BOE-A-1978-31229"``). | |
| country | Yes | ISO-3166 alpha-2 code (e.g. ``"es"``). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | No | Git commit SHA if a historical version was requested. | |
| rank | No | Country-specific legal text type. | |
| extra | No | Country-specific frontmatter fields. | |
| title | No | ||
| law_id | Yes | Official identifier (the .md filename stem). | |
| status | No | in_force | repealed | ... | |
| content | Yes | Full law text (Markdown, frontmatter stripped). | |
| country | Yes | ||
| byte_size | No | ||
| github_url | Yes | Raw provenance URL on github.com/legalize-dev. | |
| source_url | No | Official source URL (frontmatter `source`). | |
| last_updated | No | ||
| publication_date | No | ||
| human_readable_citation | No |