> For the complete documentation index, see [llms.txt](https://docs.internetobject.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.internetobject.org/definitions/definitions.md).

# Definitions

Besides the schema, an Internet Object document's **header** can hold *definitions*. A definition is a key–value pair on its own line, introduced by a tilde `~`:

```ruby
~ key: value
```

There are three kinds of definition, distinguished by the key's prefix:

| Prefix   | Kind                | Purpose                                                                                                      |
| -------- | ------------------- | ------------------------------------------------------------------------------------------------------------ |
| *(none)* | **Metadata**        | Document-level data (paging, status, …). Surfaces in the output header.                                      |
| `@`      | **Value variable**  | A reusable value referenced as `@name`. See [Variables](/definitions/variables.md).                          |
| `$`      | **Reference (ref)** | A reusable schema or type referenced as `$name`. See [Schema References](/definitions/schema-references.md). |

The special key **`$schema`** names the document's default schema.

## Metadata

Bare keys carry document metadata. They appear under a `header` in the loaded result, separate from the data:

```ruby
~ pageSize: 10
~ success: T
~ $schema: { name: string }
---
~ John
~ Jane
```

## Variables and references

`@` defines a value variable; `$` defines a reusable schema (a ref). Both are then used by name:

```ruby
~ @active: T
~ $address: { street, city }
~ $schema: { name: string, addr: $address, isActive: bool }
---
~ John, { Main St, NYC }, @active
~ Jane, { Oak Ave, LA }, @active
```

> **A document may be header-only.** If there is no data, the header still ends with the `---` separator.

## See Also

* [Header](/structure-and-syntax/introduction/header.md) — where definitions live in a document
* [Variables](/definitions/variables.md) — value variables (`@`)
* [Schema References](/definitions/schema-references.md) — schema and type refs (`$`)
* [Internet Object Schema](/schema-definition-language/internet-object-schema.md)


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.internetobject.org/definitions/definitions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
