Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/McpResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ Call ${handleDialog.name} to handle it before continuing.`);
}

if (data.formattedSnapshot) {
response.push('## Page content');
response.push('## Latest page snapshot');
response.push(data.formattedSnapshot);
}

Expand Down
8 changes: 4 additions & 4 deletions tests/McpResponse.test.js.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ exports[`McpResponse > list pages 1`] = `

exports[`McpResponse > returns correctly formatted snapshot for a simple tree 1`] = `
# test response
## Page content
## Latest page snapshot
uid=1_0 RootWebArea "My test page" url="about:blank"
uid=1_1 button "Click me" focusable focused
uid=1_2 textbox value="Input"
Expand All @@ -97,7 +97,7 @@ uid=1_0 RootWebArea "My test page" url="about:blank"

exports[`McpResponse > returns values for textboxes 1`] = `
# test response
## Page content
## Latest page snapshot
uid=1_0 RootWebArea "My test page" url="about:blank"
uid=1_1 StaticText "username"
uid=1_2 textbox "username" focusable focused value="mcp"
Expand All @@ -106,7 +106,7 @@ uid=1_0 RootWebArea "My test page" url="about:blank"

exports[`McpResponse > returns verbose snapshot 1`] = `
# test response
## Page content
## Latest page snapshot
uid=1_0 RootWebArea "My test page" url="about:blank"
uid=1_1 ignored
uid=1_2 ignored
Expand All @@ -118,7 +118,7 @@ uid=1_0 RootWebArea "My test page" url="about:blank"

exports[`McpResponse > saves snapshot to file 1`] = `
# test response
## Page content
## Latest page snapshot
Saved snapshot to <file>
`;

Expand Down
Loading