> ISPO SDK documentation. [HTML](https://ispo.ai/docs/interfaces/core.Supporting_types.CapabilityHandlerContext.html) · [Documentation index](https://ispo.ai/docs/llms.txt)

# Interface CapabilityHandlerContext

Runtime context for an owned capability (an exposed command's `.run()`).

```typescript
interface CapabilityHandlerContext {
    commandInvocation?: string;
    input: unknown;
    lease?: InvocationContextSnapshot;
    resources?: CommandResourceDelivery[];
}
```

Types: [commandInvocation](#commandinvocation), [input](#input), [lease](#lease), [InvocationContextSnapshot](core.InvocationContextSnapshot.md), [resources](#resources), [CommandResourceDelivery](core.CommandResourceDelivery.md)

##### Index

### <a id="properties"></a>Properties

[commandInvocation?](#commandinvocation) [input](#input) [lease?](#lease) [resources?](#resources)

## <a id="properties-1"></a>Properties

### <a id="commandinvocation"></a>`Optional`commandInvocation

```typescript
commandInvocation?: string
```

### <a id="input"></a>input

```typescript
input: unknown
```

### <a id="lease"></a>`Optional`lease

```typescript
lease?: InvocationContextSnapshot
```

Types: [InvocationContextSnapshot](core.InvocationContextSnapshot.md)

Compatibility wire name for the host's inline context snapshot.

### <a id="resources"></a>`Optional`resources

```typescript
resources?: CommandResourceDelivery[]
```

Types: [CommandResourceDelivery](core.CommandResourceDelivery.md)
