# zg-entities

*<mark style="color:blue;">**zg-entities or zg-es**</mark>*

<figure><img src="/files/EYB8YDClzOOr092KfUwD" alt=""><figcaption><p>.zsif file example</p></figcaption></figure>

*zg-entities is used to retrieve all tables in a database. The zg-entities object can usually be run for .zsif files and can be used in a zg-for loop to perform a variety of operations, such as finding tables in a database.*

<figure><img src="/files/MG2Fh4ExL9HPfgFm1AO9" alt="" width="246"><figcaption></figcaption></figure>

```
// To access the name of each table in entities
zg-for(((zg-item:::[[[zg-entities]]]))){{{
[[[zg-item...zg-name]]] }}}
// or 
zg-for(((zg-item:::[[[zg-es]]]))){{{
[[[zg-item...zg-name]]] }}}
```


---

# 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://docs.zontroy.com/zontroy-offline-code-generator/zontroy-ai-offline-code-generator-tutorial/zg-entities.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.
