gb_get_govuk_content
Fetch a single GOV.UK document (tribunal decision, HMRC manual section, or CMA case) by its site path, retrieving content from the GOV.UK Content API.
Instructions
Fetch one GOV.UK document (tribunal decision, HMRC manual section, CMA case).
Maps to the GOV.UK Content API (www.gov.uk/api/content/{path} - confirmed live
2026-07-07). Tribunal decisions carry the judgment as a PDF in attachments with
only a short HTML body; HMRC manual sections carry the full text in body_html.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | the document's site path - take it from a ``gb_search_govuk`` result's ``link`` field, e.g. ``"/employment-tribunal-decisions/mr-b-king-v-thales-dis-uk-ltd-1403603-slash-2020"`` or ``"/hmrc-internal-manuals/vat-government-and-public-bodies/vatgpb9700"``. A full ``www.gov.uk`` URL is also accepted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| base_path | No | ||
| body_html | No | ||
| byte_size | No | ||
| source_url | Yes | ||
| attachments | No | ||
| description | No | ||
| dataset_note | No | www.gov.uk Search API + Content API (keyless, Crown copyright, Open Government Licence v3.0) - one upstream aggregating many institutions' documents: employment tribunal decisions, employment appeal tribunal decisions, tax tribunal decisions, Upper Tribunal (AAC) decisions, residential property tribunal decisions, HMRC internal manuals, CMA competition cases and more (filter by document_type). GOV.UK documents have no neutral-citation or ELI scheme; human_readable_citation is '{Title} ({document type}, {date}, GOV.UK)'. Tribunal decisions carry the judgment as a PDF attachment with a short HTML body; HMRC manual sections carry the full text in body_html. | |
| document_type | No | ||
| public_updated_at | No | ||
| first_published_at | No | ||
| human_readable_citation | Yes |