> For the complete documentation index, see [llms.txt](https://learn.coremodels.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.coremodels.io/user-guides/json-schema/export-json-schema.md).

# Export (JSON Schema)

In this guide you will see how to how to export your imported schema.

***

1. Navigate to the 'Types Grid' UI, you'll find the sidebar tab on the far right, click on 'export', which will expand the export menu, then select 'JSON Schema'.
   1. Alternatively you can open the dedicated export UI, Features Tray → Channels → Export → JSON Schema
2. (Optional) you can select the 'profile' input or leave it empty (it will automatically select the default profile), the profile is the way you can control how nodes are exported from CoreModels.
3. (Optional) you can select the 'Root Node' or leave it empty (CoreModels will try to figure the root for you), the root node is the base JSON Schema object of your schema (see the hint below).
4. Click on 'Process'.
5. After the export is done, you can either download the file or click on 'Preview' to see the export results.

{% hint style="info" %}
If your schema was created using the [Import (JSON Schema)](/user-guides/json-schema/import-json-schema.md) and it had a single file, CoreModels will automatically figure which type should be selected, but otherwise, you should select a type for the import to work.
{% endhint %}

#### Additional Export Options

**Include All Relations:**

By Default, CoreModels filters the export results based on the selected space, setting this option to true, will include the relations that exist in the current space, regardless if its target existed in the current space or not.


---

# 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://learn.coremodels.io/user-guides/json-schema/export-json-schema.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.
