> For the complete documentation index, see [llms.txt](https://jakub-zahomolkou.gitbook.io/skpapi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jakub-zahomolkou.gitbook.io/skpapi/syntaxes-1/expressions.md).

# Expressions

```
# Name: Random UUID - generates random UUID
# Example: new classic uuid
new (1¦classic|2¦trimmed) uuid
```

```

# Name: JSON Object - Returns JSON object from text, useful for chat components
# Example: jsonobject from text "&c[ADMIN]"
jsonobject from text %string%
```

```
# Name: Entity ID - Returns ID of certain entities, useful for packets
# Example: set {_id} to entity id of player's target
entity id of %entities%
```

```
# Name: Entity type ID - Returns entity type ID, useful for summoning client side entity
# Example: set {_id} to entity type id of player's target
entity type id of %entities%
```


---

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

```
GET https://jakub-zahomolkou.gitbook.io/skpapi/syntaxes-1/expressions.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.
