> For the complete documentation index, see [llms.txt](https://espergames.gitbook.io/inventool/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://espergames.gitbook.io/inventool/scripting/getting-objects.md). Agents can also search and read this documentation through its [MCP server](https://espergames.gitbook.io/inventool/~gitbook/mcp).

# Getting Objects

How to get Inventool objects at runtime.

Also see [Initialization](https://espergames.gitbook.io/inventool/scripting/initialization.md).

## Settings

Use the `Settings` property to access Inventool's settings. Settings can be adjusted at runtime, but edits are not persistent unless handled manually.

## Getting Inventool Objects

You can get any Inventool object by its ID (`int`) or unlocalized name (`string`) with the `Get` method.

```csharp
myItem = Inventool.Get<Item>("My Item Name");
```

You can use the `GetAll` method to get all Inventool objects of a specific type.

```csharp
allItems = Inventool.GetAll<Item>();
```

Supported types:

* `Item`
* `ItemType`
* `CurrencyIdentity`
* `Recipe`
* `StatIdentity`
* `StatAttribute`
