loi_article
An article of a French consolidated code (LEGI) — its text as in force at a given date, its version timeline, or finding it by concept.
THE tool for citing law: exact text + verifiable Légifrance URL.
op:
"get" (default): consolidated text of a French code article (
code+num), as in force at a given date."versions": full version timeline of a code article (
code+num) — every rewriting with dates and statuses. Use to see WHEN an article changed before picking adatefor op="get"."search": full-text search across French consolidated codes (LEGI). Find the article when you know the concept but not the number ("période d'essai CDD", "clause de non-concurrence").
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": "loi_article"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | get (default) | versions | search. | get |
| num | No | op="get"/"versions" — article number, ex "L1242-2", "1128", "R4228-20". | |
| _org | No | Org (id) de CET APPEL. `oto_list_orgs()`. | |
| code | No | op="get"/"versions" (required) — short alias: CT (travail), CC (civil), CP (pénal), CSS (sécurité sociale), CCOM, CGI, CPI… (loi_codes lists all 22) — or a raw LEGITEXT id. op="search" (optional) — restrict to one code (alias CT/CC/… or LEGITEXT). | |
| date | No | op="get" — YYYY-MM-DD, version in force AT THAT DATE (default: today). Use the date of the document citing the article: a 1992 ruling cites the 1992 wording, not today's. | |
| limit | No | op="search" — max results (default 20, max 50). | |
| query | No | op="search" — full-text query (websearch syntax, french stemming). | |
| _group | No | Équipe (id) de CET APPEL, sous son org parente. | |
| _run_id | No | OBLIGATOIRE à chaque appel dès `run_start` ou `data_claim_next` : sans lui, l'écriture sur une ligne réservée est refusée. Hérité seulement si le serveur tient un run actif — n'y compte pas. | |
| _project | No | Projet (id) de CET APPEL — jeton PRIMAIRE. `oto_project(op='list')`. | |
| _instance | No | Instance de connecteur PRÉCISE (un credential exact). `oto_instance(op='list')`. | |
| en_vigueur | No | op="search" — only versions in force today (default True). |