Creating and loading sessions
session/new
method with:
loadSession
capability allow Clients to resume previous conversations. This feature enables persistence across restarts and sharing sessions between different Client instances.
loadSession
field in the initialize
response:
loadSession
is false
or not present, the Agent does not support loading sessions and Clients MUST NOT attempt to call session/load
.
session/load
method with:
session/update
notifications (like session/prompt
).
For example, a user message from the conversation history:
session/load
request.
session/new
is a unique identifier for the conversation context.
Clients use this ID to:
session/prompt
session/cancel
session/load
(if the Agent supports the loadSession
capability)cwd
(current working directory) parameter establishes the file system context for the session. This directory: