Search within a UK Court Judgment
case_law_grep_judgmentSearch paragraphs in a judgment by pattern to find specific legal content, such as judicial statements on negligence or foreseeability, without needing paragraph numbers.
Instructions
Find paragraphs in a single judgment whose text matches a pattern.
Returns a list of {eId, snippet, match} hits — small per-paragraph
snippets centred on the match — so the LLM can decide which full
paragraphs to read via judgment://{slug}/para/{eId}.
Use this when answering content-based questions ("what did the judges say about negligence?", "find the test for foreseeability", "did this case cite Donoghue?") rather than navigating by paragraph number (which uses the index resource).
Pattern is regex; if it doesn't compile, falls back to literal substring search.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes | Input schema for case_law_grep_judgment. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The judgment slug that was searched | |
| pattern | Yes | The pattern that was searched for | |
| hits | Yes | Matching paragraphs in document order | |
| truncated | Yes | True if hit count reached max_hits and more matches may exist |