lex_get_document_by_url
Fetch a parsed EU legal document from any EUR-Lex URL by pasting its link. Extracts the CELEX identifier and returns document details.
Instructions
Fetch a parsed document from any EUR-Lex URL — useful when the user pastes a link from their browser. Extracts the CELEX from the URL and returns the same shape as lex_get_document plus sourceUrl and extractedCelex echoes.
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": {
"url": "<url>"
},
"name": "lex_get_document_by_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Any eur-lex.europa.eu URL containing a CELEX: identifier or uri= parameter. |