eul_get_document
Retrieve EU legislation by CELEX number from the EU Publications Office as Markdown, with optional section extraction or file export for legal research and document processing.
Instructions
Retrieve EU legislation by CELEX number (e.g., "32016R0679" for GDPR, "32024R1689" for the AI Act) from the EU Publications Office (Cellar). A CELEX beginning with the sector digit (3…) returns the act as published in the Official Journal, without later amendments. For the consolidated text use the leading 0 instead: "02024R1689" returns the latest consolidated version in force, "02024R1689-20240712" a specific one; consolidated texts are documentation, not the binding text. Returns full text in Markdown. Use section for partial content: "Art. 5", "Artikel 5-10", "Anhang III", "Kapitel III", "Kapitel III Abschnitt 2", or "lines:100-200". save_path is for export only — when the user wants the document as a file to keep or process elsewhere.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| celex | Yes | CELEX number (e.g., "32016R0679", "32001L0029", "12016E267"; consolidated: "02016R0679" or "02016R0679-20160504") | |
| section | No | Extract section: "Art. 5", "Artikel 5-10", "Anhang III" (also "Annex 3"), "Kapitel III" (with all its sections), "Kapitel III Abschnitt 2", or "lines:100-200" | |
| language | Yes | Language code (default: DE) | DE |
| save_path | No | Absolute file path for the full document. Relative paths are not supported. |