You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/protocol/session-list.mdx
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
---
2
2
title: "Session List"
3
-
description: "Discovering and enumerating existing sessions"
3
+
description: "Discovering existing sessions"
4
4
---
5
5
6
-
The `session/list` method allows Clients to discover and enumerate sessions known to an Agent. Clients can use this to display session history and switch between sessions.
6
+
The `session/list` method allows Clients to discover sessions known to an Agent. Clients can use this to display session history and switch between sessions.
7
7
8
8
Agents can also push session metadata updates to Clients in real-time via the `session_info_update` notification, keeping session titles and metadata in sync without polling.
9
9
10
-
Before listing sessions, Clients **MUST** first complete the [initialization](../initialization) phase to verify the Agent supports this capability.
10
+
Before listing sessions, Clients **MUST** first complete the [initialization](./initialization) phase to verify the Agent supports this capability.
11
11
12
12
<br />
13
13
@@ -133,7 +133,7 @@ The Agent **MUST** respond with a list of sessions and optional pagination metad
133
133
ISO 8601 timestamp of the last activity in the session.
134
134
</ResponseField>
135
135
<ResponseFieldname="_meta"type="object">
136
-
Agent-specific metadata. See [Extensibility](../extensibility).
136
+
Agent-specific metadata. See [Extensibility](./extensibility).
137
137
</ResponseField>
138
138
</Expandable>
139
139
</ResponseField>
@@ -156,7 +156,7 @@ When no sessions match the criteria, the Agent **MUST** return an empty `session
156
156
157
157
## Updating Session Metadata
158
158
159
-
Agents can update session metadata in real-time by sending a `session_info_update` notification via `session/update`. This follows the same pattern as other session notifications like [`available_commands_update`](../slash-commands) and [`current_mode_update`](../session-modes).
159
+
Agents can update session metadata in real-time by sending a `session_info_update` notification via `session/update`. This follows the same pattern as other session notifications like [`available_commands_update`](./slash-commands) and [`current_mode_update`](./session-modes).
160
160
161
161
```json
162
162
{
@@ -187,15 +187,15 @@ All fields are optional. Only include fields that have changed — omitted field
187
187
</ResponseField>
188
188
189
189
<ResponseFieldname="_meta"type="object">
190
-
Agent-specific metadata. See [Extensibility](../extensibility).
190
+
Agent-specific metadata. See [Extensibility](./extensibility).
191
191
</ResponseField>
192
192
193
-
The `sessionId` and `cwd` fields are **not** included in the update — `sessionId` is already in the notification's `params`, and `cwd` is immutable (set during [`session/new`](../session-setup#creating-a-session)). Agents typically send this notification after the first meaningful exchange to auto-generate a title.
193
+
The `sessionId` and `cwd` fields are **not** included in the update — `sessionId` is already in the notification's `params`, and `cwd` is immutable (set during [`session/new`](./session-setup#creating-a-session)). Agents typically send this notification after the first meaningful exchange to auto-generate a title.
194
194
195
195
## Interaction with Other Session Methods
196
196
197
197
`session/list` is a discovery mechanism only — it does **not** restore or modify sessions:
198
198
199
199
1. Client calls `session/list` to discover available sessions
200
200
2. User selects a session from the list
201
-
3. Client calls [`session/load`](../session-setup#loading-sessions) with the chosen `sessionId` to resume the conversation
201
+
3. Client calls [`session/load`](./session-setup#loading-sessions) with the chosen `sessionId` to resume the conversation
0 commit comments