@genart-dev/mcp-server 0.4.10 → 0.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/lib.cjs +7 -7
- package/dist/lib.cjs.map +1 -1
- package/dist/lib.js +7 -7
- package/dist/lib.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5535,15 +5535,15 @@ function registerSketchTools(server, state) {
|
|
|
5535
5535
|
});
|
|
5536
5536
|
return {
|
|
5537
5537
|
content: [
|
|
5538
|
+
{ type: "text", text: JSON.stringify({
|
|
5539
|
+
...result,
|
|
5540
|
+
capture: captureResult.metadata
|
|
5541
|
+
}, null, 2) },
|
|
5538
5542
|
{
|
|
5539
5543
|
type: "image",
|
|
5540
5544
|
data: captureResult.previewJpegBase64,
|
|
5541
5545
|
mimeType: "image/jpeg"
|
|
5542
|
-
}
|
|
5543
|
-
{ type: "text", text: JSON.stringify({
|
|
5544
|
-
...result,
|
|
5545
|
-
capture: captureResult.metadata
|
|
5546
|
-
}, null, 2) }
|
|
5546
|
+
}
|
|
5547
5547
|
]
|
|
5548
5548
|
};
|
|
5549
5549
|
} catch (captureErr) {
|
|
@@ -6125,12 +6125,12 @@ function registerCaptureTools(server, state) {
|
|
|
6125
6125
|
console.error(`[capture_screenshot] jpeg base64 length: ${result.previewJpegBase64.length}`);
|
|
6126
6126
|
return {
|
|
6127
6127
|
content: [
|
|
6128
|
+
{ type: "text", text: JSON.stringify(result.metadata, null, 2) },
|
|
6128
6129
|
{
|
|
6129
6130
|
type: "image",
|
|
6130
6131
|
data: result.previewJpegBase64,
|
|
6131
6132
|
mimeType: "image/jpeg"
|
|
6132
|
-
}
|
|
6133
|
-
{ type: "text", text: JSON.stringify(result.metadata, null, 2) }
|
|
6133
|
+
}
|
|
6134
6134
|
]
|
|
6135
6135
|
};
|
|
6136
6136
|
} catch (e) {
|