Get GOV.UK Page
govuk_get_contentRetrieve metadata and navigable section index from a GOV.UK page. Get page title, document type, publication dates, and a list of sections with anchor IDs and headings.
Instructions
Get metadata and navigable section index for a GOV.UK page.
Returns the page title, document type, publication dates, and a list of sections with their anchor IDs and headings. Use govuk_get_section to read the body of a specific section, or govuk_grep_content to search within the page body.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_path | Yes | GOV.UK base_path, e.g. '/universal-credit' or 'universal-credit' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||