@@ -571,12 +571,19 @@ export class ClientSideConnection implements Agent {
571571 }
572572
573573 /**
574- * Sets the mode for an existing session.
574+ * Sets the operational mode for a session.
575575 *
576- * This method allows changing the operational mode of an existing session.
577- * The available modes are advertised in the agent's capabilities during initialization .
576+ * Allows switching between different agent modes (e.g., "ask", "architect", "code")
577+ * that affect system prompts, tool availability, and permission behaviors .
578578 *
579- * See protocol docs: [Session Mode Management](https://agentclientprotocol.com/protocol/session-management#mode-setting)
579+ * The mode must be one of the modes advertised in `availableModes` during session
580+ * creation or loading. Agents may also change modes autonomously and notify the
581+ * client via `current_mode_update` notifications.
582+ *
583+ * This method can be called at any time during a session, whether the Agent is
584+ * idle or actively generating a turn.
585+ *
586+ * See protocol docs: [Session Modes](https://agentclientprotocol.com/protocol/session-modes)
580587 */
581588 async setSessionMode (
582589 params : schema . SetSessionModeRequest ,
@@ -1239,9 +1246,19 @@ export interface Agent {
12391246 params : schema . LoadSessionRequest ,
12401247 ) : Promise < schema . LoadSessionResponse > ;
12411248 /**
1242- * @internal **UNSTABLE**
1249+ * Sets the operational mode for a session.
1250+ *
1251+ * Allows switching between different agent modes (e.g., "ask", "architect", "code")
1252+ * that affect system prompts, tool availability, and permission behaviors.
1253+ *
1254+ * The mode must be one of the modes advertised in `availableModes` during session
1255+ * creation or loading. Agents may also change modes autonomously and notify the
1256+ * client via `current_mode_update` notifications.
1257+ *
1258+ * This method can be called at any time during a session, whether the Agent is
1259+ * idle or actively generating a turn.
12431260 *
1244- * This method is not part of the spec, and may be removed or changed at any point.
1261+ * See protocol docs: [Session Modes](https://agentclientprotocol.com/protocol/session-modes)
12451262 */
12461263 setSessionMode ?(
12471264 params : schema . SetSessionModeRequest ,
0 commit comments