SessionOptions
Properties
Type:
McpServerMCP servers passed to the agent. Tool availability depends on the agent’s support.Answer this session’s permission requests. Takes precedence over the
client-level
onPermission; when neither is set, requests are rejected.How much history to replay while loading:
"full": the whole transcript, assession/loaddoes. The default forloadSession()."tail": only the newesttailLimitevents plus a history skeleton (needs thecognition.ai/tailReplaycapability; falls back to"full")."none": join the live stream without replaying anything. The default forattach().
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.
