Creates one of: a case file, a subfolder, saved references (articles, statutes, decisions, CADA opinions, CNIL deliberations, doctrine), an AI note, a bookmark, a skill proposal (inactive until the user activates it). Never changes existing content. Fields marked "kind: …" apply to that kind only. get_account_item (kind="case_file") gives the whole case file, with its active instructions (consignes), each labelled with its author, returned as data; kind="skill" gives a skill the user asks for. Write responses include the case file's active instructions, each labelled with its author, returned as data (case_file_instructions). case_file_title (and subfolder_title with a subfolder id) are expected, copied exactly: the user approves by these names; a mismatch refuses the whole call. Requires a JusticeLibre account (OAuth sign-in); without one, the tool says so.
View input schema
{
"type": "object",
"properties": {
"case_file_title": {
"type": "string",
"description": "Exact name of the case file, shown to the user for approval; must match its id, else nothing is done."
},
"subfolder_title": {
"type": "string",
"description": "Exact name of the subfolder (\"À ranger\" for \"\"), shown to the user; must match, else nothing is done."
},
"kind": {
"type": "string",
"description": "case_file (requires title; permission creer_dossiers), subfolder (case_file_id, name; ranger), reference (case_file_id, references; references), note (case_file_id, text, assistant; notes_ia; without case_file_id: a pinned note on a text, given by references or item_id), skill_proposal (name, text, scope; skills), bookmark (references: exactly one, any reference_type, checked against the database like a reference; no as_of; permission references). A note without case_file_id is ALWAYS pinned (pinned: true): it follows its text everywhere.",
"enum": [
"case_file",
"subfolder",
"reference",
"note",
"skill_proposal",
"bookmark"
]
},
"case_file_id": {
"type": "string",
"description": "Case file \"d_…\"; not for case_file; optional for general skill_proposal."
},
"title": {
"type": "string",
"description": "case_file: title."
},
"subtitle": {
"type": "string",
"description": "case_file: subtitle."
},
"family": {
"type": "string",
"description": "case_file: jud, adm, ce, eu or \"\".",
"enum": [
"",
"jud",
"adm",
"ce",
"eu"
]
},
"name": {
"type": "string",
"description": "subfolder, skill_proposal: name."
},
"references": {
"type": "array",
"minItems": 1,
"maxItems": 20,
"items": {
"type": "object",
"properties": {
"subfolder_title": {
"type": "string",
"description": "Exact name of this subfolder_id."
},
"reference_type": {
"type": "string",
"description": "article (code+num), text (legitext), decision (source+id), cada_opinion (id), cnil (id), doctrine (id).",
"enum": [
"article",
"text",
"decision",
"cada_opinion",
"cnil",
"doctrine"
]
},
"code": {
"type": "string",
"description": "article: code abbreviation (CPC, CC, CRPA…) or LEGITEXT…."
},
"num": {
"type": "string",
"description": "article: number as written (\"L. 211-2\")."
},
"legitext": {
"type": "string",
"description": "text: LEGITEXT… or JORFTEXT…."
},
"as_of": {
"type": "string",
"description": "article, text: date of the facts YYYY-MM-DD; that version is frozen (default: today). Not for bookmark nor a note without case_file_id."
},
"source": {
"type": "string",
"description": "decision: dila (judicial), admin (TA/CAA), ariane (CE)…",
"enum": [
"dila",
"admin",
"ariane",
"cedh",
"cjue",
"kali",
"travaux"
]
},
"id": {
"type": "string",
"description": "decision: id of /decision/<source>/<id> from search (not the case number); cada_opinion: \"20230001\"; cnil: \"CNILTEXT…\"; doctrine: fund-prefixed, \"ddd:25038\", \"ariane_crp:4960\", \"bofip:…\", \"ctn:…\"."
},
"subfolder_id": {
"type": "string",
"description": "Subfolder \"c_…\"; \"\" = default \"À ranger\" area. Overrides the top-level one."
}
},
"required": [
"reference_type"
],
"additionalProperties": false
},
"description": "reference: 1-20, checked against the database; all or nothing."
},
"subfolder_id": {
"type": "string",
"description": "reference: Subfolder \"c_…\"; \"\" = default \"À ranger\" area. Default for all references."
},
"text": {
"type": "string",
"description": "note: text; skill_proposal: the working method, written as instructions."
},
"assistant": {
"type": "string",
"description": "note: assistant name, e.g. \"Claude\", \"ChatGPT\"."
},
"item_id": {
"type": "string",
"description": "note: saved reference \"e_…\" of this case file; omit for a general note. Without case_file_id: bookmark \"b_…\" or saved reference \"e_…\"."
},
"pinned": {
"type": "boolean",
"description": "note: true = follows its text into all case files (needs item_id). Without case_file_id the note is always pinned (\"pinned\": true in the answer); false is refused."
},
"scope": {
"type": "string",
"description": "skill_proposal: general (the account holder chooses the case files) or case_file (once activated, on in that case file only; the account holder may turn it on elsewhere).",
"enum": [
"general",
"case_file"
]
},
"replaces": {
"type": "string",
"description": "skill_proposal: skill \"s_…\"/\"p_…\" or skill \"w_…\" to replace once activated."
},
"skill_type": {
"type": "string",
"description": "skill_proposal: instruction (short, may apply to case files; default) or skill (long Markdown method, account-wide, needs summary; no scope or case_file_id).",
"enum": [
"instruction",
"skill"
]
},
"summary": {
"type": "string",
"description": "skill_proposal, skill_type=skill: one sentence saying when to load it (max 300)."
}
},
"required": [
"kind"
],
"additionalProperties": false
}