Skip to content

add --query flag for query format support#69

Merged
nickscamara merged 4 commits intomainfrom
feat/query-format
Mar 12, 2026
Merged

add --query flag for query format support#69
nickscamara merged 4 commits intomainfrom
feat/query-format

Conversation

@developersdigest
Copy link
Member

Summary

  • Adds -Q, --query <prompt> flag to scrape command for asking questions about page content
  • Injects { type: "query", prompt } into formats array when flag is used
  • Returns answer field directly to stdout (or -o file) for query mode
  • Updates SKILL.md with option docs and usage example

Test plan

  • npm run build passes
  • firecrawl scrape "https://example.com" --query "What is this page about?" returns an answer
  • Answer outputs to file with -o
  • Non-query scrapes still work as before

the --query scrape docs were accidentally committed to
.agents/skills/firecrawl-scrape/ instead of skills/firecrawl-scrape/.
scrape + grep/read is the default for coding agents — full content
stays local for agentic reasoning. --query is for quick targeted
answers without saving the page.
@nickscamara nickscamara merged commit 5c2ba51 into main Mar 12, 2026
1 check passed
@nickscamara nickscamara deleted the feat/query-format branch March 12, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants