﻿# Aider web imports scraped page text into chat context

Bring a relevant documentation page into Aider with an explicit web import, then inspect the scraped text rather than assuming that a visible URL supplied its complete contents.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-aider-web-page-context-import/
Language: en

## Supply the documentation the edit needs

A task depends on a library behavior newer than the model's training data. A URL in the user's request identifies a source, but the model still needs readable evidence from it. Aider's [images and web-pages guide](https://aider.chat/docs/usage/images-urls.html) describes scraping page text into the chat. Use a specific relevant page rather than importing an entire documentation portal without knowing which section supports the requested change.

## Distinguish explicit import from detection

The documented `/web` command imports a given URL. Pasting a URL can instead prompt to add the page, depending on effective settings. The [options reference](https://aider.chat/docs/config/options.html) separately controls detection and offering of URLs. A link appearing in chat therefore does not establish a completed import. Check the observed retrieval before attributing a model's unfamiliar answer to an inability to understand the documentation.

## Inspect the Markdown representation

The [command reference](https://aider.chat/docs/usage/commands.html) describes scraping a page, converting it to Markdown, and sending it as a message. That representation may differ from a browser's rendered page. Verify the required method signature, exception, or version qualification in the imported text. A page with dynamic content or access restrictions needs special attention. Do not infer that absent extracted text means the feature does not exist in the original documentation.

## Keep environment setup a separate decision

The option reference documents `--disable-playwright` as preventing prompting for or attempts to install Playwright for scraping. This is a setup boundary, not a promise that every dynamic site becomes readable through another path. Decide environment changes separately from reading a source and inspect what actually succeeded. The documented import is a page-reading action; it should not be presented as a standing synchronization service that guarantees fresh evidence throughout a long coding task.

## Apply the documented rule to current code

Keep the imported passage and its relevant version beside the requested repository behavior. The [clean-web-text guide](/journal/webpage-clean-text-rag-trafilatura/) explains extraction tradeoffs, while [task contracts](/journal/learn-codex-task-contract/) turn the source rule into a concrete expected outcome. After editing, verify the local interface and behavior. Successful page import supplies context; it does not prove the generated patch used the applicable section correctly.
