CoCounsel runs the orchestration and Nimble supplies the templates
CoCounsel calls Nimble one stage at a time. After each call, it reviews what came back and keeps the relevant results. It then sends their ids to the next stage, or it stops.
Every Act that matches the words, 20 per page. Each Act comes with its title, citation, type_code, year and number.
“unfair dismissal” returns 86 Acts.
Stops when the Act titles answer the question.
Keeps the Acts that matter. Here it keeps the Employment Rights Act 1996.
type_code: "ukpga"year: "1996"number: "18"text: "unfairly dismissed"Every section of the Act that uses a phrase, with its section number, title and URL.
“unfairly dismissed” returns 33 sections.
Stops when the section titles are enough.
Keeps the sections that matter. Here it keeps section 94, “The right.”
In Germany the site search already returns provisions, so CoCounsel skips this stage.
type_code: "ukpga"year: "1996"number: "18"section: "94"The current text of the section as named fields: the title, each subsection, the subsection numbers and the extent.
Section 94 returns 2 subsections in 637 characters.
Stops and cites the text when the lawyer only needs the rule.
Goes on to the case law when the lawyer needs the judgments that apply it.
query: "section 94" "Employment Rights Act 1996"Every judgment that cites the section, 10 per page, with name, court, citation, date, snippets and URL. A second template returns one judgment as numbered paragraphs.
Section 94 returns 86 judgments.
Keeps the judgments that fit the facts. Here it keeps N Stubbs v Grafters Ltd and fetches it with its path.
path: "eat/2022/134"CoCounsel cites the judgment by paragraph number.
CoCounsel reads only what each stage returns. It never has to load the whole page of a long Act into the model.
Section 94 of the Employment Rights Act 1996, measured on live runs on 11 October 2026. Tokens are estimated at about 4 characters each.
| Country | 1 Find the act | 2 Find the provision | 3 Fetch the provision | 4 Find the case law | Calls |
|---|---|---|---|---|---|
| United Kingdom | uk_ | uk_ | uk_ | uk_ uk_ | 5 |
| Germany | germany_ | not needed | germany_ | germany_ | 3 |
Each template name opens that template in your Nimble account. Nimble builds templates for another approved site on request.
Every template uses the same endpoint. The template name and its parameters go in the body, and the result is in data.parsing.
curl -s -X POST https://sdk.nimbleway.com/v2/extract/templates/run \
-H "Authorization: Bearer $NIMBLE_API_KEY" -H "Content-Type: application/json" \
-d '{"template": "<name>", "params": {...}}'
For the full text of any URL or PDF, CoCounsel calls Extract. Batch mode takes up to 1,000 URLs in one call.
Each stage shows the page, the call and what came back
- Use case
- A lawyer needs the statutory right not to be unfairly dismissed, its current text and the judgments that apply it.
- Sources
- legislation.gov.uk for the Act and the section. Find Case Law, from The National Archives, for the judgments.
- Route
- Five template calls, from the search term to one judgment.
Find the Act uk_legislation_search

-d '{"template":"uk_legislation_search","params":{"text":"unfair%20dismissal","page":"1"}}'
title, citation, type_code, year, number, contents_url, rank for each Act, 20 per page. The template runs the site's own search. The type_code, year and number go straight into the next call.
20 Acts on page 1. First four:
| Rank | Act | type_code · year · number |
|---|---|---|
| 1 | Trade Union and Labour Relations (Consolidation) Act 1992 | ukpga · 1992 · 52 |
| 2 | Employment Rights Act 1996 | ukpga · 1996 · 18 |
| 3 | Employment Protection (Consolidation) Act 1978 | ukpga · 1978 · 44 |
| 4 | Employment Rights Act 2025 | ukpga · 2025 · 36 |
Find the sections uk_legislation_contents_matches

-d '{"template":"uk_legislation_contents_matches","params":{"type_code":"ukpga","year":"1996","number":"18","text":"unfairly%20dismissed"}}'
the sections whose text contains the phrase: section, title, section_url. The Act's ids come from stage 1. The match is literal. Section 94 reads “unfairly dismissed”, so CoCounsel uses that phrase.
Fetch a section uk_legislation_section

-d '{"template":"uk_legislation_section","params":{"type_code":"ukpga","year":"1996","number":"18","section":"94"}}'
The template returns section_title, paragraphs[], subsection_numbers[], extent. The text keeps the site's amendment markers, such as F1 and M1.
s.94 The right.
(1) An employee has the right not to be unfairly dismissed by his employer.
(2) Subsection (1) has effect subject to the following provisions of this Part (in particular sections 108 to 110) and to the provisions of the Trade Union and Labour Relations (Consolidation) Act 1992 (in particular sections 237 to 239).
Case law on the section uk_caselaw_search

-d '{"template":"uk_caselaw_search","params":{"query":"%22section+94%22+%22Employment+Rights+Act+1996%22"}}'
total_results and 10 judgments per page: name, court, neutral_citation, handed_down, snippets[], judgment_url. Find Case Law holds judgments from 2001 and is complete from 2022.
86 results. Four of page 1:
| # | Name | Neutral citation | Handed down |
|---|---|---|---|
| 1 | Clyde & Co LLP & Anor v Bates Van Winkelhof | [2012] EWCA Civ 1207 | 2012-09-26 |
| 2 | Hottak & Anor v Secretary of State for Foreign and Commonwealth Affairs | [2015] EWHC 1953 (Admin) | 2015-07-08 |
| 3 | Creditsights Ltd v Dhunna | [2014] EWCA Civ 1238 | 2014-09-19 |
| 7 | N Stubbs v Grafters Ltd | [2022] EAT 134 | 2022-05-31 |
Fetch a judgment uk_caselaw_judgment
![N Stubbs v Grafters Ltd [2022] EAT 134](img/uk5.jpg)
-d '{"template":"uk_caselaw_judgment","params":{"path":"eat/2022/134"}}'
case_name, neutral_citation, paragraphs[]. Each paragraph has a number and texts[]. CoCounsel picks the judgment ranked 7th and sends its judgment_url without the domain.
The judgment N Stubbs v Grafters Ltd [2022] EAT 134 has 18 paragraphs.
1. This is an appeal against the decision of Employment Judge Cadney on 21st October 2021 striking out the appellant’s claim. That strike-out was the subject of a review by EJ Midgley on 29th October 2021, who did not reverse the decision.
- Use case
- A lawyer needs the rule on Störung der Geschäftsgrundlage (§ 313 BGB), its current text and the decisions that cite it.
- Sources
- gesetze-im-internet.de for the provision. dejure.org for the decisions that cite it.
- Route
- Three template calls, from the search term to the decisions that cite § 313.
Find the provision germany_gesetze_im_internet_fulltext_search

-d '{"template":"germany_gesetze_im_internet_fulltext_search","params":{"words":"St%F6rung+Gesch%E4ftsgrundlage"}}'
total_hits and up to 50 provisions: label, url, instrument, section, snippet, stars, the site's rating from 1 to 4. The words are Latin-1 encoded (ä is %E4, ö is %F6) and joined with +. This search returns provisions, so CoCounsel skips the contents stage.
3 hits
| Label | URL | Stars |
|---|---|---|
| § 313 BGB - Einzelnorm | gesetze-im-internet.de/bgb/__313.html | 4 |
| BGB - nichtamtliches Inhaltsverzeichnis | gesetze-im-internet.de/bgb/ | 1 |
| § 17 BwBBG - Einzelnorm | gesetze-im-internet.de/bwbbg_2026/__17.html | 1 |
Fetch the provision germany_gesetze_im_internet_provision

-d '{"template":"germany_gesetze_im_internet_provision","params":{"instrument_slug":"bgb","section_id":"313"}}'
The template returns 12 fields, including section_label, section_title, paragraphs[], cross_references[], text_full, url. The url from stage 1 gives the inputs (bgb/__313.html).
§ 313 BGB Störung der Geschäftsgrundlage
(1) Haben sich Umstände, die zur Grundlage des Vertrags geworden sind, nach Vertragsschluss schwerwiegend verändert und hätten die Parteien den Vertrag nicht oder mit anderem Inhalt geschlossen, wenn sie diese Veränderung vorausgesehen hätten, so kann Anpassung des Vertrags verlangt werden …
(2) Einer Veränderung der Umstände steht es gleich, wenn wesentliche Vorstellungen, die zur Grundlage des Vertrags geworden sind, sich als falsch herausstellen.
Case law on the provision germany_dejure_provision_caselaw

-d '{"template":"germany_dejure_provision_caselaw","params":{"gesetz":"BGB","paragraf":"313","page":"1"}}'
total_decisions, pages and up to 50 decisions per page: court, date, aktenzeichen, holding, related[], dejure_url. Each dejure_url links to the decision and its full-text sources.
4,054 decisions over 82 pages. First four:
| Court | Date | Aktenzeichen | Holding |
|---|---|---|---|
| OLG Hamm | 05.10.2026 | 2 VKl 2/23 | Preiserhöhungsverlangen, Verbraucherklage, Energieversorger, Ukraine |
| BGH | 15.07.2026 | XII ZR 7/24 | Geschäftsschließung wegen Corona-Pandemie: Anspruch auf Vertragsanpassung |
| BGH | 23.11.2022 | XII ZR 96/21 | Coronabedingte Schließung: Wie erfolgt Vertragsanpassung bei Gewerberaummiete? |
| BGH | 11.10.2023 | XII ZR 87/22 | Vermietung einer Segelyacht während der im Vertragszeitraum geltenden … |
Every call on this page, as run on 11 October 2026
| Example | Call | Time | Result |
|---|---|---|---|
| United Kingdom | uk_ | 2.2 s | 20 Acts on page 1, Employment Rights Act 1996 second |
| uk_ | 1.7 s | 33 sections | |
| uk_ | 7.8 s | 2 subsections | |
| uk_ | 2.8 s | 86 results | |
| uk_ | 1.9 s | 18 paragraphs | |
| Germany | germany_ | 1.9 s | 3 hits, § 313 BGB first |
| germany_ | 3.9 s | 12 fields, 3 paragraphs | |
| germany_ | 5.1 s | 4,054 decisions on 82 pages | |
| Extract | Extract on the s.94 page, for the token comparison | 11.2 s | 45,558 characters of markdown |
Texts were compared with the source pages. Provision texts match the page word for word on every tested provision: 5 in the United Kingdom and 5 in Germany. Judgment paragraphs match on the 3 judgments tested.