01 /
Build the repeatable
parts once
Many agent projects hide the same difficult middle: retrieve a JavaScript page, reject a challenge screen, recover structure from a scan, or turn generated Markdown into something a person can actually download. I pull those responsibilities into focused tools so the next product can build on a tested contract.
02 /
The building blocks
The local collection spans three generations of that idea. Image2DOCX explored vision-assisted recovery of scanned pages into an editable Word file. Mistral Document Tool distilled OCR, schema-driven annotation, and document Q&A into a small Python library and CLI. The Web Extraction API grew from a basic scraper into a production service that routes between direct HTTP, Cloudflare Browser Rendering, and a final Chromium fallback.
A URL, instructions, optional schema, and bounded scope become validated JSON through a Cloudflare Worker and Container.
One CLI and library contract covers OCR, JSON-schema annotation, and question answering over image-based documents.
An earlier Flask product extracts structured Markdown from images or scanned PDFs and converts it into an editable document.
The extraction service feeds larger systems such as NewsClaw while remaining independently testable and deployable.
03 /
The engineering
decision
The extraction API demonstrates the mature form of this approach. It races retrieval methods, scores candidate quality before model use, blocks private-network targets, validates generated output, and expands only a small set of relevant same-site pages when a listing is incomplete. The common path spends one model call; a second candidate is tried only when the first result fails its contract.
The tool-building ruleGive the agent a capability with boundaries—not another pile of raw content.
04 /
Cloudflare as an application platform
The current web extractor runs FastAPI inside a Cloudflare Container, fronted by a Worker that can call the Browser Rendering binding. The image is built remotely with Google Cloud Build, tested before promotion, and referenced by an immutable tag. That work added Cloudflare Workers, Containers, Browser Rendering, D1, R2, and Durable Objects to my practical platform experience.
05 /
Evidence & boundaries
These are separate local systems with different maturity levels. The Cloudflare extraction endpoint is deployed and smoke-tested; Mistral Document Tool is a packaged local CLI/library; Image2DOCX is an earlier product repository. Their code is evidence of the pattern, not a claim that every tool runs inside every project.