# Working with a document

- [Search inside a document](https://help.lawlibrary.org.za/working-with-a-document/search-inside-a-document.md): The In-document search feature will help in doing a search inside various document types including judgments, legislation, and PDFs.
- [Document table of contents](https://help.lawlibrary.org.za/working-with-a-document/document-table-of-contents-toc.md): Efficiently navigate a document using the table of contents
- [Ask questions about a document with AI](https://help.lawlibrary.org.za/working-with-a-document/ask-questions-about-a-document-with-ai.md): The Ask AI tool helps you quickly understand any part of a legal document


---

# Agent Instructions: 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:

```
GET https://help.lawlibrary.org.za/working-with-a-document.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
