Tools
Every tool only reads. Each answers with text written for a model: the passages in their official wording, each with an id in square brackets to pass to the next tool. The HTTP API takes the same arguments and answers the same text with ?format=text, or JSON without it.
| Tool | What it does | HTTP |
|---|---|---|
search |
Find passages by words, by meaning or both. A citation such as art. 6:162 BW, § 823 BGB or an ECLI is answered with that text first. |
POST /v1/search |
get_document |
Read a law, one article or a decision, also as it stood on a past day. One article comes with the leading decisions on it. | POST /v1/document |
get_outline |
The structure of a long law: its parts, chapters and articles. | POST /v1/outline |
get_citations |
What cites an article or a decision, the leading ones first, and what it cites. | POST /v1/citations |
get_changes |
What changed in a law, a source or a country: the articles amended, inserted or repealed, newest first. | POST /v1/changes |
list_sources |
What is held, per jurisdiction, and of each institution what is missing. | GET /v1/sources |
The arguments of each are on its page in the API reference.
How an agent uses them
Section titled “How an agent uses them”A typical answer takes two or three calls: search to find the article or decision, get_document to read it in full (or as it stood on the day that matters), get_citations for the case law on it. Answers are cut to max_tokens (1,500 unless set, 200 to 8,000) and say how to read on.