> For the complete documentation index, see [llms.txt](https://docs.neuroinfodb.org/squirrel/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.neuroinfodb.org/squirrel/specifications/specification-v1.0/package-root.md). Agents can also search and read this documentation through its [MCP server](https://docs.neuroinfodb.org/squirrel/~gitbook/mcp).

# Package root

JSON object

The package root contains all data and files for the package. The JSON root contains all JSON objects for the package.

<figure><img src="https://mermaid.ink/img/pako:eNqVlEFrgzAUx7-KpBQUdJTRXRz0tF3G2GC9DS-v5lmzqpEkbpXS777EGFttD60H8_7J75-XvIceSMopkphsBdS59_6VVJ5-BOfKf1t_fnRREEUrCgp88wqeT4ieryHdwRb9fpyushoLVqH0h2hC4L5GwUqslPTP4gllEkeUpYrxCkTrT3Rg4W42Wm0Fb2qooGilTtwpz0m3b4_KZvODqU7tArfutGFUQ5neqB-vEHwjUfyCOYz0z8UVllVKL-srdvBIDbRNZFLrcpjM3XC5bC_FpO8Ch8zn1hI9mAYJKGXGCtMjEzroEjVFMaAcNXo-P-uLwU7SwiftdRNB8w09787RC-txauJwFzEGF1uDUyPDcAXVFugNxzdMEc-yLAt1tQTfYURB5iAEtPHj2DTKco9xUoV7rKNS3GKc2IeO3uK1HvMdDTQ-LRah5ePZcrns4-iPUZXHy3pPQlKiKIFR_Wc4mH0SonIsMSGxDilm0BQqIUl11GhT68rjK2WKCxJnUEgMCTSKr9sqJbESDTrohYH-0ZQDpT_Tb86dPv4DnT6QuA?type=png" alt=""><figcaption></figcaption></figure>

### JSON variables

:yellow\_circle: Computed (squirrel writer/reader should handle these variables)

<table data-full-width="true"><thead><tr><th width="220">Variable</th><th width="149">Type</th><th width="109">Default</th><th>Description</th></tr></thead><tbody><tr><td><a href="https://docs.neuroinfodb.org/squirrel/specifications/specification-v1.0/package.md">package</a></td><td>JSON object</td><td></td><td>Package information.</td></tr><tr><td><a href="https://docs.neuroinfodb.org/squirrel/specifications/specification-v1.0/data.md">data</a></td><td>JSON object</td><td></td><td>Raw and analyzed data.</td></tr><tr><td><a href="https://docs.neuroinfodb.org/squirrel/specifications/specification-v1.0/pipelines.md">pipelines</a></td><td>JSON array</td><td></td><td>Methods used to analyze the data.</td></tr><tr><td><a href="https://docs.neuroinfodb.org/squirrel/specifications/specification-v1.0/experiments.md">experiments</a></td><td>JSON array</td><td></td><td>Experimental methods used to collect the data.</td></tr><tr><td><a href="https://docs.neuroinfodb.org/squirrel/specifications/specification-v1.0/data-dictionary.md">data-dictionaries</a></td><td>JSON array</td><td></td><td>Data dictionaries containing descriptions, mappings, and key/value information for any variables in the package.</td></tr><tr><td><code>DataDictionaryCount</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Number of data dictionaries.</td></tr><tr><td><code>ExperimentCount</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Number of experiments.</td></tr><tr><td><code>PipelineCount</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Number of pipelines.</td></tr><tr><td><code>TotalFileCount</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Total number of data files in the package, excluding .json files.</td></tr><tr><td><code>TotalSize</code></td><td>number</td><td><span data-gb-custom-inline data-tag="emoji" data-code="1f7e1">🟡</span></td><td>Total size, in bytes, of the data files.</td></tr></tbody></table>

{% hint style="info" %}
`pipelines`, `experiments`, and `data-dictionaries`, along with their count variables, are only written when the package contains at least one object of that type.
{% endhint %}

### Package files

The following files are stored in the root of the package.

* `squirrel.json` - The package metadata described in this specification.
* `squirrel.db` - An embedded SQLite copy of the same metadata, written automatically by the squirrel library so large packages can be read faster. It is a cache only: `squirrel.json` is authoritative, and the library ignores `squirrel.db` if it was not built from the `squirrel.json` in the same package. See the [squirrel.db schema](https://docs.neuroinfodb.org/squirrel/specifications/specification-v1.0.md).

### Directory structure

Files associated with this object are stored in the following directory.

> `/`


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.neuroinfodb.org/squirrel/specifications/specification-v1.0/package-root.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
