@@ -50,12 +50,6 @@ declare module 'vscode' {
5050 constructor ( cell : TextDocument ) ;
5151 }
5252
53- export interface ChatRequestSessionGrouping {
54- readonly id : string ;
55- readonly order : number ;
56- readonly kind ?: string ;
57- }
58-
5953 export interface ChatRequest {
6054 /**
6155 * The id of the chat request. Used to identity an interaction with any of the chat surfaces.
@@ -122,11 +116,6 @@ declare module 'vscode' {
122116 */
123117 readonly parentRequestId ?: string ;
124118
125- /**
126- * Optional metadata used to group related requests together in the UI.
127- */
128- readonly sessionGrouping ?: ChatRequestSessionGrouping ;
129-
130119 /**
131120 * The permission level for tool auto-approval in this request.
132121 * - `'autoApprove'`: Auto-approve all tool calls and retry on errors.
@@ -199,10 +188,15 @@ declare module 'vscode' {
199188 */
200189 readonly modelId ?: string ;
201190
191+ /**
192+ * The mode instructions that were active for this request, if any.
193+ */
194+ readonly modeInstructions2 ?: ChatRequestModeInstructions ;
195+
202196 /**
203197 * @hidden
204198 */
205- constructor ( prompt : string , command : string | undefined , references : ChatPromptReference [ ] , participant : string , toolReferences : ChatLanguageModelToolReference [ ] , editedFileEvents : ChatRequestEditedFileEvent [ ] | undefined , id : string | undefined , modelId : string | undefined ) ;
199+ constructor ( prompt : string , command : string | undefined , references : ChatPromptReference [ ] , participant : string , toolReferences : ChatLanguageModelToolReference [ ] , editedFileEvents : ChatRequestEditedFileEvent [ ] | undefined , id : string | undefined , modelId : string | undefined , modeInstructions2 : ChatRequestModeInstructions | undefined ) ;
206200 }
207201
208202 export class ChatResponseTurn2 {
@@ -421,4 +415,17 @@ declare module 'vscode' {
421415 }
422416
423417 // #endregion
418+
419+ export interface LanguageModelToolInformation {
420+ /**
421+ * The full reference name of this tool as used in agent definition files.
422+ *
423+ * For MCP tools, this is the canonical name in the format `serverShortName/toolReferenceName`
424+ * (e.g., `github/search_issues`). This can be used to map between the tool names specified
425+ * in agent `.md` files and the tool's internal {@link LanguageModelToolInformation.name id}.
426+ *
427+ * This property is only set for MCP tools. For other tool types, it is `undefined`.
428+ */
429+ readonly fullReferenceName ?: string ;
430+ }
424431}
0 commit comments