# Event Arguments

When you write functions for `given`, `change`, `keep` or `select`, you can name what arguments you want to use. You can choose from these arguments:

* `space`
* `atom`
* `element`
* `origin` (the space that is calling the event)
* `self` (the atom that is calling the event)
* `Self` (the element that is calling the event)
* `selected` (a value that was returned by a `select` function of the same symbol)
* `x` (the relative x-value of the space)
* `y` (the relative y-value of the space)
* `z` (the relative z-value of the space)
* `sites` (an array containing all spaces in the origin's event window)
* `siteNumber` (the site index of this space)
* `time` (the number of event cycles that have happened since page load)

The arguments below are mainly used for internal purposes, but are still available:

* `transformationNumber` (when using a symmetry block, the current transformation number)
* `possibleSiteNumbers` (when using an `any` block, an array containing possible site numbers for this space)
* `possibleXs` (when using an `any` block, an array containing possible relative x-values for this space)
* `possibleYs` (when using an `any` block, an array containing possible relative y-values for this space)
* `possibleZs` (when using an `any` block, an array containing possible relative z-values for this space)
* `transformationNumbers` (when using a `for` block, an array containing transformation numbers)


---

# 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://todepond.gitbook.io/spacetode/event-arguments.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.
