> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.doc-detective.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.doc-detective.com/_mcp/server.

# Load state (detailed)

> Reference for the `Load state (detailed)` schema.

## Referenced In

* [loadState](/reference/schemas/loadstate)

## Fields

| Field     | Type   | Description                                                                                                                                                                      | Default |
| :-------- | :----- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------ |
| path      | string | Required. Path of the state file, ending in `.json`. A relative path resolves against `directory`, or against `outputDir` when `directory` is omitted. Pattern: `^.*\S.*\.json$` | —       |
| directory | string | Optional. Directory to load the state file from. A relative directory resolves against the spec file. Omit it to load from `outputDir`. Minimum length: 1. Pattern: `\S`         | —       |

## Examples

```json
{
  "path": "auth.json"
}
```

```json
{
  "path": "auth.json",
  "directory": "../.auth"
}
```