Skip to content

Commit 71aa555

Browse files
mogerycursoragent
andcommitted
feat(scrape): add query mode option
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 57d2d0f commit 71aa555

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "firecrawl-mcp",
3-
"version": "3.14.1",
3+
"version": "3.15.0",
44
"description": "MCP server for Firecrawl — search, scrape, and interact with the web. Supports both cloud and self-hosted instances. Features include web search, scraping, page interaction, batch processing, and LLM-powered content analysis.",
55
"type": "module",
66
"mcpName": "io.github.firecrawl/firecrawl-mcp-server",

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ const scrapeParamsSchema = z.object({
314314
queryOptions: z
315315
.object({
316316
prompt: z.string().max(10000),
317+
mode: z.enum(['directQuote', 'freeform']).default('freeform'),
317318
})
318319
.optional(),
319320
screenshotOptions: z
@@ -454,6 +455,7 @@ If JSON extraction returns empty, minimal, or just navigation content, the page
454455
**Use query format only when:**
455456
- The page is extremely long and you need a single targeted answer without processing the full content
456457
- You want a quick factual answer and don't need to retain the page content
458+
- Set \`queryOptions.mode\` to \`"directQuote"\` when you need verbatim page text; otherwise it defaults to \`"freeform"\`
457459
458460
**Usage Example (markdown format - default for most tasks):**
459461
\`\`\`json
@@ -1414,6 +1416,7 @@ if (process.env.CLOUD_SERVICE !== 'true') {
14141416
queryOptions: z
14151417
.object({
14161418
prompt: z.string().max(10000),
1419+
mode: z.enum(['directQuote', 'freeform']).default('freeform'),
14171420
})
14181421
.optional(),
14191422
parsers: z.array(z.enum(['pdf'])).optional(),

0 commit comments

Comments
 (0)