Properties
string
Working directory for this session. Defaults to the client-level
cwd.McpServer[]
Type:
McpServerMCP servers passed to the agent. Tool availability depends on the agent’s support.string | FusionModel
Type:
FusionModelModel to use, e.g. "claude-sonnet-5-medium" (see LocalSession.models()), or a
Fusion model such as Fusion({ leader: "claude-opus-5-max", sidekick: "swe-2-high" }).Answer this session’s permission requests. Takes precedence over the
client-level
onPermission; when neither is set, requests are rejected.false | SessionTraceOptions
Type:
SessionTraceOptionsTrace attributes for this session, merged over the client’s tracing
defaults; false leaves the session untraced. No effect without a
client-level tracing option.
