# TokenScript Syntax

{% hint style="info" %}
**Note:** \
A TokenScript file consists of Token Cards, presently in JavaScript and HTML, overlayed with XML mark-up. More on that see [TokenScript File](https://tokenscript.org/TokenScript-Component.html).
{% endhint %}

The root element of a TokenScript File can be one of the following:

* [\<cards> element](https://tokenscript.org/elements/cards.html)
* [\<card> element](https://tokenscript.org/elements/card.html)
* [\<tokens> element](https://tokenscript.org/elements/tokens.html)
* [\<token> element](https://tokenscript.org/elements/token.html)

{% hint style="success" %}
**Tip:** \
If a Token Issuer issues multiple tokens, it's important to define them in a single TokenScript file using [\<tokens> element](https://tokenscript.org/elements/tokens.html), for TokenScript release management reason.
{% endhint %}

A list of TokenScript elements can be found - as a work in progress - in [TokenScript XML Markup elements](https://tokenscript.org/elements/index.html)


---

# 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://tokenscript.gitbook.io/tokenscript/basic-concepts/tokenscript-syntax.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.
