|
268 | 268 | ], |
269 | 269 | "title": "SetSessionModeResponse" |
270 | 270 | }, |
| 271 | + { |
| 272 | + "allOf": [ |
| 273 | + { |
| 274 | + "$ref": "#/$defs/SetSessionTitleResponse" |
| 275 | + } |
| 276 | + ], |
| 277 | + "title": "SetSessionTitleResponse" |
| 278 | + }, |
271 | 279 | { |
272 | 280 | "allOf": [ |
273 | 281 | { |
|
696 | 704 | "description": "Sets the current mode for a session.\n\nAllows switching between different agent modes (e.g., \"ask\", \"architect\", \"code\")\nthat affect system prompts, tool availability, and permission behaviors.\n\nThe mode must be one of the modes advertised in `availableModes` during session\ncreation or loading. Agents may also change modes autonomously and notify the\nclient via `current_mode_update` notifications.\n\nThis method can be called at any time during a session, whether the Agent is\nidle or actively generating a response.\n\nSee protocol docs: [Session Modes](https://agentclientprotocol.com/protocol/session-modes)", |
697 | 705 | "title": "SetSessionModeRequest" |
698 | 706 | }, |
| 707 | + { |
| 708 | + "allOf": [ |
| 709 | + { |
| 710 | + "$ref": "#/$defs/SetSessionTitleRequest" |
| 711 | + } |
| 712 | + ], |
| 713 | + "description": "Sets the title for a session.\n\nEmpty titles are valid and request that the agent clear the session title.\n\nThis method can be called at any time during a session, whether the Agent is\nidle or actively generating a response.", |
| 714 | + "title": "SetSessionTitleRequest" |
| 715 | + }, |
699 | 716 | { |
700 | 717 | "allOf": [ |
701 | 718 | { |
|
3123 | 3140 | "x-method": "session/set_mode", |
3124 | 3141 | "x-side": "agent" |
3125 | 3142 | }, |
| 3143 | + "SetSessionTitleRequest": { |
| 3144 | + "description": "Request parameters for setting a session title.", |
| 3145 | + "properties": { |
| 3146 | + "_meta": { |
| 3147 | + "additionalProperties": true, |
| 3148 | + "description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)", |
| 3149 | + "type": ["object", "null"] |
| 3150 | + }, |
| 3151 | + "sessionId": { |
| 3152 | + "allOf": [ |
| 3153 | + { |
| 3154 | + "$ref": "#/$defs/SessionId" |
| 3155 | + } |
| 3156 | + ], |
| 3157 | + "description": "The ID of the session to set the title for." |
| 3158 | + }, |
| 3159 | + "title": { |
| 3160 | + "description": "The new title for the session.", |
| 3161 | + "type": "string" |
| 3162 | + } |
| 3163 | + }, |
| 3164 | + "required": ["sessionId", "title"], |
| 3165 | + "type": "object", |
| 3166 | + "x-method": "session/setTitle", |
| 3167 | + "x-side": "agent" |
| 3168 | + }, |
| 3169 | + "SetSessionTitleResponse": { |
| 3170 | + "description": "Response to `session/setTitle` method.", |
| 3171 | + "properties": { |
| 3172 | + "_meta": { |
| 3173 | + "additionalProperties": true, |
| 3174 | + "description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)", |
| 3175 | + "type": ["object", "null"] |
| 3176 | + } |
| 3177 | + }, |
| 3178 | + "type": "object", |
| 3179 | + "x-method": "session/setTitle", |
| 3180 | + "x-side": "agent" |
| 3181 | + }, |
3126 | 3182 | "StopReason": { |
3127 | 3183 | "description": "Reasons why an agent stops processing a prompt turn.\n\nSee protocol docs: [Stop Reasons](https://agentclientprotocol.com/protocol/prompt-turn#stop-reasons)", |
3128 | 3184 | "oneOf": [ |
|
0 commit comments