---
title: "explorer | Eidos Docs"
description: "SDK signatures, permissions and behavior for explorer."
source: "https://docs.eidos.space/plugins/api/explorer/"
lang: "en"
---

# explorer

Lite API 3.1, only at sidebar/explorer. read is synchronous; watch has no initial callback. State is display metadata and does not grant filesystem authority. A null rootDirectory means the Space root; a null activePath means no open file.

Usage guide: [explorer](https://docs.eidos.space/plugins/explorer/). [API index](https://docs.eidos.space/plugins/api/).

Signatures, parameters and return types are generated from the SDK. Optional members are not available in every host and context.

## ExplorerContext

[Source](https://github.com/mayneyao/eidos/blob/dev/packages/plugin-sdk/src/index.ts#L400)

### ExplorerContext.read

Supported hosts: Lite

Read the current explorer display state synchronously.

```ts
read(): ExplorerState;
```

Returns: `ExplorerState`.

### ExplorerContext.watch

Supported hosts: Lite

Subscribe to state changes without an initial callback.

```ts
watch(listener: (state: ExplorerState) => void): Disposable;
```

| Parameter | Type                           | Required |
| --------- | ------------------------------ | -------- |
| listener  | (state: ExplorerState) => void | Yes      |

Returns: `Disposable`.

Related types: [ExplorerState](https://docs.eidos.space/plugins/api/types/#explorerstate), [Disposable](https://docs.eidos.space/plugins/api/types/#disposable).
