# Keywords

Keyword syntax is the way to encode script instructions using special words. In general, any command name as defined in [Sanny Builder Library](https://library.sannybuilder.com) is a valid keyword.

When using keywords, they must be the first word on the line, followed by arguments (if any).

Here is an example of a WAIT command using its name as the keyword:

```pascal
wait 0
```

Extra words are allowed (similarly to [opcode syntax](/language/instructions/opcodes.md)):

```pascal
CREATE_PLAYER 0 at 811.875 -939.9375 35.75 store_to $player 
```

A keywords list can be displayed after pressing `Ctrl+Space`.

### Extra keywords

{% hint style="warning" %}
Editing `keywords.txt` is deprecated and legacy keywords are left only for backward compatibility with old scripts. Adding new keywords is discouraged.
{% endhint %}

Edit modes can define extra aliases to command names in the file [keywords.txt](/edit-modes.md#keywords):

```javascript
0002=jump
0002=goto
```

```javascript
jump @label // 'jump' is an alias to the GOTO command
```


---

# 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.sannybuilder.com/language/instructions/keywords.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.
