> For the complete documentation index, see [llms.txt](https://liiguide.docs.laws.africa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://liiguide.docs.laws.africa/working-with-a-document/document-table-of-contents-toc.md).

# Document table of contents

You can efficiently explore a large document, by using the table of contents to navigate sections.

## To access the Table of Contents

1. Locate the legislation
2. Open the document to view the **Table of contents** on the left-hand side of the page.

<figure><img src="/files/540tUrz8yi0dK1lbbLpf" alt=""><figcaption></figcaption></figure>

3. Scroll through the **Table of Contents** using the scroll bar on the right to view the various sections.
4. Alternatively, you can use the **Search table of contents** to perform a search in the table of contents.
5. Use the "**Expand All**" and "**Collapse All**" buttons to expand or collapse all headings in your document.
6. Click on the **Chapter, Section, Part,** or **Paragraph** that contains the content you want.
7. The page will automatically jump to that part of the document.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://liiguide.docs.laws.africa/working-with-a-document/document-table-of-contents-toc.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
