crawlforge-mcp-server 3.0.5 → 3.0.6
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "crawlforge-mcp-server",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"description": "CrawlForge MCP Server - Professional Model Context Protocol server with 19 comprehensive web scraping, crawling, and content processing tools.",
|
|
5
5
|
"main": "server.js",
|
|
6
6
|
"bin": {
|
|
@@ -739,12 +739,17 @@ export class ActionExecutor extends EventEmitter {
|
|
|
739
739
|
* @returns {Promise<Object>} Screenshot result
|
|
740
740
|
*/
|
|
741
741
|
async captureScreenshot(page, options = {}) {
|
|
742
|
+
const format = options.format || 'png';
|
|
742
743
|
const screenshotOptions = {
|
|
743
|
-
type:
|
|
744
|
-
quality: options.quality || 80,
|
|
744
|
+
type: format,
|
|
745
745
|
fullPage: options.fullPage || false
|
|
746
746
|
};
|
|
747
747
|
|
|
748
|
+
// Quality option is only supported for JPEG screenshots
|
|
749
|
+
if (format === 'jpeg' || format === 'jpg') {
|
|
750
|
+
screenshotOptions.quality = options.quality || 80;
|
|
751
|
+
}
|
|
752
|
+
|
|
748
753
|
let screenshot;
|
|
749
754
|
if (options.selector) {
|
|
750
755
|
const element = await page.waitForSelector(options.selector);
|