> For the complete documentation index, see [llms.txt](https://infinity-command.gitbook.io/infinity-command/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infinity-command.gitbook.io/infinity-command/content/inventory.md).

# Inventory

## Overview

The inventory is the collection of digital items on the ship.  Some items are used by other systems (e.g. ammo for the weapons).

The inventory is used primarily in the [Synthesis Lab](/infinity-command/crew-stations/synthesis-lab.md) for now, but it will probably be expanded over time to include cargo bays, shuttles, transfers, and other inventory management features.

## Inventory Items

Every possible inventory item is defined by a JSON file inside the [Content Pack](/infinity-command/getting-started/content-pack.md)'s `Inventory` subfolder.  There are two types of inventory items:  **Raw Materials**, and **Finished Goods**.

### Raw Materials

Raw materials are items that can be combined into other items.

<details>

<summary>Sample JSON definition for a raw material inventory item:</summary>

```
{
  "Id": "AntimatterCell",
  "Label": "Antimatter Cell",
  "IconPath": "Misc/sample.png"
}
```

</details>

### Finished Goods

Finished goods are higher value, more complex items.  They can be created by combining multiple raw materials together, as defined in the finished good's "blueprint."  The blueprint specifies what other items (and how many) are needed.

<details>

<summary>Sample JSON definition of a finished good that includes a blueprint:</summary>

```
{
  "id": "VoidTorpedo",
  "label": "Void Torpedo",
  "IconPath": "Symbols/reticle.png",
  "Blueprint": [
    {
      "Id": "AntimatterCell",
      "Quantity": 2
    },
    {
      "Id": "XenoniteCasing",
      "Quantity": 1
    },
    {
      "Id": "PowerBank",
      "Quantity": 1
    },
    {
      "Id": "GuidanceSystem",
      "Quantity": 1
    },
    {
      "Id": "CircuitBoard",
      "Quantity": 2
    }
  ]
}

```

</details>

## Inventory Slots

Just because an inventory item is defined, that doesn't necessarily mean you want it cluttering up your ship.  The ship's config file specifies which inventory items you care about, how many you start with, and what your max capacity is.

<details>

<summary>Sample inventory slot specification in the Ship's config file:</summary>

```
"Inventory": {
	"StartingSlots": [
		{
			"Id": "AntimatterCell",
			"Quantity": 68,
			"Capacity": 80
		},
		{
			"Id": "BeamModulator",
			"Quantity": 36,
			"Capacity": 60
		},
		{
			"Id": "CarbonFiber",
			"Quantity": 75,
			"Capacity": 90
		}
	]
}
```

</details>


---

# 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://infinity-command.gitbook.io/infinity-command/content/inventory.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.
