Read the official text of a European act
get_eu_official_textOfficial EU legislative text. With 'billId' alone: lists the official versions of a European bill (proposal, Parliament position, adopted act) with the languages each exists in (empty for French bills). With 'textId': reads that version as XHTML in the requested 'language' (with a fallback language, stated in the answer), in windows of 12000 characters ('contentWindow.nextOffset' gives the 'contentOffset' to read on). Give exactly one of 'billId' and 'textId'.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_eu_official_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size. | |
| size | No | Items per page (default 25, maximum 25). | |
| billId | No | Identifier of a European bill (jurisdiction EU). Give it alone to LIST its official text versions. | |
| textId | No | Identifier of one official version, from the list this tool returns for a billId. Give it to READ that version. | |
| language | No | Language of the content, ISO 639-1 code of one of the 24 languages of the European Union. Default: fr, the language of the sources. Other languages exist for European texts only, when a translation exists. | |
| contentChars | No | Number of characters of 'xhtml' to return (default 12000, maximum 30000). | |
| contentOffset | No | Index of the first character of 'xhtml' to return. Use the 'nextOffset' of the previous answer's 'contentWindow' to read on. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xhtml | No | The text, as XHTML. | |
| textId | No | Identifier of the text. | |
| fallback | No | True when the requested language was not available and a fallback language was served. | |
| eurLexUrl | No | URL of the document on EUR-Lex. | |
| truncated | No | Present when this answer was shortened to stay short: says what was cut and how to get the rest. | |
| contentWindow | No | Which part of the long text field is returned: field, offset, returned, total, nextOffset (absent at the end). | |
| servedLanguage | No | ISO 639-1 language actually served. | |
| requestedLanguage | No | ISO 639-1 language requested. |