Skip to content
ML2
Research & AutomationUse casecontextFirecrawlMarkItDown

Turn a docs site into agent context

Our verdict

Agents hallucinate APIs they don't know. Giving them the current docs as local Markdown is a simple fix. Refresh when the library version changes.

Who it's for
Builders integrating new or fast-moving APIs
Leverage
Fewer hallucinated API calls
Effort
Low
Date added

What it does

Use a crawler (Firecrawl or Crawl4AI) to pull a docs site into Markdown files in your repo (e.g. /docs/vendor), or convert PDFs with MarkItDown, then reference them in your agent's instructions.

How builders use it

  • Crawl the relevant docs section only, not the whole site.
  • Reference the folder in CLAUDE.md / AGENTS.md.
  • Ask the agent to cite the doc file it relied on.

What to expect

Integration code that matches the real, current API.

Copy this: Agent instruction

Before writing any code that calls <library>, read the relevant files in docs/vendor/<library>/.
Only use functions and parameters that appear there.
In your summary, list which doc files you used.

Related discoveries

Want more like this?

Practical discoveries, without the noise.