@@ -38,6 +38,7 @@ export interface ConsoleMessageData {
3838export class McpResponse implements Response {
3939 #includePages = false ;
4040 #includeSnapshot = false ;
41+ #includeVerboseSnapshot = false ;
4142 #attachedNetworkRequestData?: NetworkRequestData ;
4243 #consoleMessagesData?: ConsoleMessageData [ ] ;
4344 #textResponseLines: string [ ] = [ ] ;
@@ -57,8 +58,9 @@ export class McpResponse implements Response {
5758 this . #includePages = value ;
5859 }
5960
60- setIncludeSnapshot ( value : boolean ) : void {
61+ setIncludeSnapshot ( value : boolean , verbose = false ) : void {
6162 this . #includeSnapshot = value ;
63+ this . #includeVerboseSnapshot = verbose ;
6264 }
6365
6466 setIncludeNetworkRequests (
@@ -163,6 +165,10 @@ export class McpResponse implements Response {
163165 return this . #includeSnapshot;
164166 }
165167
168+ get includeVersboseSnapshot ( ) : boolean {
169+ return this . #includeVerboseSnapshot;
170+ }
171+
166172 async handle (
167173 toolName : string ,
168174 context : McpContext ,
@@ -171,7 +177,7 @@ export class McpResponse implements Response {
171177 await context . createPagesSnapshot ( ) ;
172178 }
173179 if ( this . #includeSnapshot) {
174- await context . createTextSnapshot ( ) ;
180+ await context . createTextSnapshot ( this . #includeVerboseSnapshot ) ;
175181 }
176182
177183 if ( this . #attachedNetworkRequestData?. networkRequestStableId ) {
0 commit comments