ExperimentalThe ID of the session to fork.
Optional ExperimentalcursorUNSTABLE
This capability is not part of the spec yet, and may be removed or changed at any point.
The session cursor to fork at. The new session's history is the source session's history before the cursor.
Optional. Omitted and null are equivalent and fork the whole session.
Clients MUST only send the ID of a cursor that the Agent announced on the
source session and that currently advertises capabilities.fork. The Agent
rejects any other ID with -32602. It does not fall back to forking the
whole session.
The working directory for this session. Must be an absolute path.
OptionaladditionalAdditional workspace roots to activate for this session. Each path MUST be absolute.
When omitted or empty, no additional roots are activated. When non-empty, this is the complete resulting additional-root list for the forked session.
OptionalmcpList of MCP servers to connect to for this session.
OptionalsystemSystem-level instructions for the forked session.
Optional. Omitted and null are equivalent. The Agent MAY then keep a
system prompt it stored with the source session or use its default
instructions. Clients MUST only send this when the Agent advertises
session.systemPrompt, and SHOULD send the same value they used for the
source session.
Optional ExperimentalconfigUNSTABLE
This capability is not part of the spec yet, and may be removed or changed at any point.
Initial values for the forked session's config options.
Optional. Omitted and null are equivalent to an empty list. Clients MUST only send
this when the Agent advertises session.options.
The Agent applies the entries in list order on top of the configuration the fork
starts with, as if the Client had called session/set_config_option for each entry
after the session was set up. Malformed entries and duplicate configId values fail
the request with -32602. The Agent MUST ignore an entry whose configId is unknown,
whose type does not match the option, or whose value is not allowed when it is
applied. The configOptions in the response contain the values the session actually
has. The Agent SHOULD NOT send config_option_update notifications for these entries,
and SHOULD NOT send other session/update notifications caused by applying them
before it responds.
Optional_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
UNSTABLE
This capability is not part of the spec yet, and may be removed or changed at any point.
Request parameters for forking an existing session.
Creates a new session based on the context of an existing one. The fork can be used for operations like generating summaries without affecting the original session's history.
Only available if the Agent supports the
session.forkcapability.