We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 023ebb9 commit abfebbeCopy full SHA for abfebbe
src/tools/screenshot.ts
@@ -83,10 +83,8 @@ export const screenshot = defineTool({
83
}
84
85
if (request.params.filePath) {
86
- await context.saveFile(screenshot, request.params.filePath);
87
- response.appendResponseLine(
88
- `Saved screenshot to ${request.params.filePath}.`,
89
- );
+ const file = await context.saveFile(screenshot, request.params.filePath);
+ response.appendResponseLine(`Saved screenshot to ${file.filename}.`);
90
} else if (screenshot.length >= 2_000_000) {
91
const {filename} = await context.saveTemporaryFile(
92
screenshot,
0 commit comments