ACP v2 (Preview) TypeScript SDK — UNSTABLE - v2.12.1
    Preparing search index...

    Type Alias SessionOptionsRequestExperimental

    UNSTABLE

    This capability is not part of the spec yet, and may be removed or changed at any point.

    Request parameters for session/options, which returns the config options a session would start with, without creating or resuming a session.

    Only available if the Agent supports the session.options capability.

    session/options MUST NOT create or resume a session, send session/update notifications, add an entry to session/list, or change an existing session. Agents SHOULD NOT connect to MCP servers to answer it. Agents MAY start their runtime to resolve the options. The rules above still hold for it.

    type SessionOptionsRequest = {
        cwd: AbsolutePath;
        additionalDirectories?: AbsolutePath[];
        sessionId?: SessionId | null;
        _meta?: { [key: string]: unknown } | null;
    }
    Index

    The working directory to resolve options for. Must be an absolute path.

    additionalDirectories?: AbsolutePath[]

    Additional workspace roots to resolve options for. Each path MUST be absolute.

    Optional. Omitted and null are equivalent to an empty list.

    sessionId?: SessionId | null

    The session to resolve options for.

    Optional. Omitted and null are equivalent and mean a new session. When present, the Agent returns what session/resume with the same cwd and additionalDirectories would return, with the same cwd rules. A session the Agent does not know gets -32002.

    _meta?: { [key: string]: unknown } | null

    The _meta property is reserved by ACP to allow Clients and Agents to attach additional metadata to their interactions. Omitted and null are equivalent and mean no metadata. Implementations MUST NOT assign meaning to keys they do not recognize.

    See protocol docs: Extensibility