---
name: web-research
description: Use when the user provides URLs, asks about a specific business, product, service package, place, study or paper, or asks for current prices, menus or opening details, references specific brands or styles, mentions trends, asks whether to search first before generating, or needs external knowledge to inform generation prompts. Covers when and how to search and scrape the web for real-world context before generating media and for answering factual questions.
category: web
---

# Web Research

## When to Search

Search and scrape the web to gather real-world context BEFORE generating media, and to answer factual questions (see below), when:

- User references a specific brand, product, or public figure ("in Apple's style", "like Nike ads").
- User mentions a trend or current event ("trending TikTok aesthetic", "2026 Pantone color").
- User provides a URL as reference -- scrape it to read the page content.
- User asks about capabilities or pricing that may have changed since training data.
- COMPLEX/MEGA projects where visual accuracy matters -- research the subject first.
- You write something that runs inside a named third-party product (template tags, merge fields, formulas, API fields, settings paths) -- open its docs first and use only names it lists. If the docs lack what the user wants, say so and offer the nearest documented option instead of inventing one.

## Answering factual questions

A question about a specific business, product or service package, place, study or paper, or about current prices, menus, schedules or figures, is a lookup, not a recall task.

**Check the tool catalog before the web.** The catalog has tools that read many sites, registries and authorities directly (a regulator's directives, a company register, PubMed, a marketplace's listings). First find a tool by the site, source or kind of data the question names (for example "Alberta Energy Regulator directives" or "PubMed article"), read its input schema and run it. Search the web only when no tool fits the site or data, or a tool's answer lacks what the question needs, and say why you went to the web.

Otherwise search, then open the official page or the paper, and answer from what you read, with the source link. "I don't know, check their website" is not an answer while search is available; if the search finds nothing, say what you searched. Before you cite a figure the user gives you, check it against the source you name; if the source says something else or covers a different area or year, say so and use the source's figure. When a price depends on a condition (minimum stay, blackout dates, eligibility) the request does not seem to meet, check it where the price is committed (cart or checkout) or in the offer terms; if you can't, give the price with that condition stated. When sources disagree on a fact your deliverable relies on, such as a rule, rate or date, open the primary source (the legislation or the regulator's guidance) and follow it. If that does not settle it, say which reading you used, and put the same note in the deliverable where the fact is used, not only in your reply.

For a rule set by law or an authority (tax or filing deadlines, rates, thresholds, eligibility), read the authority's own data or text: its catalog tool when one fits (above), else its page or the legal text, and work the date or amount out from the rule as written, including any weekend or holiday shift the rule defines. A bank, news or blog page is a lead, not the source. If you can't open a primary source, say the figure is unconfirmed and name what to check.

## When NOT to Search

- Simple generation with clear instructions ("a sunset over mountains") -- just generate.
- User already provided detailed style descriptions -- do not second-guess them.
- Follow-up messages in an ongoing conversation where context is already established. A new factual question about a named business, product, place, study or paper is still a lookup.
- **The URL IS the subject of the task (not research context).** When the user pastes a URL as the thing to act on, go straight to the right tool — do NOT scrape it first:
  - YouTube / TikTok / Instagram URL + "transcribe / get the transcript" → follow **model-recommendations** → Transcription (social links): a transcription tool whose schema takes that platform's URL, else download the media first (next bullet) and transcribe the file.
  - YouTube / TikTok / Instagram URL + "summarize" → get the transcript the same way first, then summarize it.
  - YouTube URL + "captions / subtitles" → the subtitler (`fal/veed/subtitles`) cannot take a YouTube link, and there is no YouTube video download tool. Get the words with `scrapecreators/scrapecreators/youtube-transcript` (the video's own captions) or the media understanding tool, and deliver them as a transcript or caption file; burned-in captions on the YouTube video itself are unsupported unless the user supplies the video file.
  - TikTok / Instagram / X / LinkedIn URL + "captions / subtitles" → download the media first (the `social-video-download` skill), then follow model-recommendations § Captions / subtitles on a video.
  - Image / video / audio URL to edit, compose, upscale, lipsync, etc. → pass the URL to the relevant tool's input field.
  - Never scrape a media URL you intend to transcribe, caption, edit, or include in composition — media hosts block scraping and the tools accept the URL natively.

## Workflow

1. For a factual lookup, find a catalog tool for the site or data first (Answering factual questions, above). Otherwise, or when none fits, search the web for visual references, style guides, or context: `firecrawl/firecrawl/search` (or `exa/exa/search`).
2. If snippets lack detail (common for paywalled or video sites), scrape the most promising URLs with `firecrawl/firecrawl/scrape` (many pages: `firecrawl/firecrawl/batch-scrape`). Do NOT re-search with different queries if you already have good URLs.
3. Skip YouTube/video URLs for text-based research -- they rarely have useful text content. Prefer reputable news/article sites.
4. If a scrape returns a page shell, a loading message, a dashboard without the figures you need, or a list shorter than the count the page states (playlists, feeds and search results load more rows as you scroll), the page is rendered in the browser: scrape it again with browser actions (wait, click its controls such as area, year or indicator, scroll), as the scrape tool's input schema names them, and read the values there. For a long list, scroll and collect rows until you reach the stated count (virtualized lists drop rows that scroll out of view). Never tell the user you cannot scroll or use a page before trying browser actions. Only after they also fail, say the page could not be read, and what you tried.
5. If a scrape reports a user-supplied link as not found or unreachable, try it once more before calling it broken. Never change its domain or path; say the tool could not open it, not that the link is invalid.
6. PDFs: every parsed page is charged. Cap the pages you parse (for example `parsers: [{type: "pdf", maxPages: 10}]` when the scrape schema offers it), raise the cap only when the task needs more of the document, and when a result's `numPages` is below its `totalPages`, say you read the first pages and offer to read more.
7. Translate findings into prompt elements: specific hex codes or color names, art direction or photography style, brand tone and mood, and observed composition patterns.
