> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# LoadSessionOptions

> Options for and .

Options for `LocalDevin.loadSession` and `LocalDevin.attach`.

```typescript
interface LoadSessionOptions extends SessionOptions
```

## Properties

**cwd** `string`

Working directory for the resumed session. Defaults to the client-level `cwd`.

**mcpServers** `McpServer[]`

**Type:** `McpServer[]`

MCP servers passed to the agent. Tool availability depends on the agent's support.

**onPermission** `PermissionHandler`

Answer this session's permission requests. Takes precedence over the
client-level `onPermission`; when neither is set, requests are rejected.

**tracing** `false | SessionTraceOptions`

**Type:** `false | SessionTraceOptions`

Trace attributes for this session, merged over the client's `tracing`
defaults; `false` leaves the session untraced. No effect without a
client-level `tracing` option.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.