URLs-LE

v2.4.0
io.github.nolindnaidoo/urls-le Checked 1 day ago Published 1 month ago

Extract URLs from documentation, configuration and code, with their protocol and position.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

extract_urls

Extract every URL from a document, with its protocol and 1-based line and column. Reads any text document. Markdown, HTML, CSS, JavaScript, TypeScript, JSON, YAML, Properties, TOML, INI and XML know what to exclude — code fences, comments, non-string tokens; everything else is scanned whole, and `fileType` says which happened.

ParameterTypeDescription
content *stringThe document text to scan.
dedupebooleanCollapse repeated URLs to their first occurrence.
filenamestringFilename used to infer the format when `format` is absent, e.g. "README.md".
formatstringDocument format. Provide this or `filename`. Common extensions and aliases are accepted; anything else is scanned as plain text rather than refused.
maxResultsintegerCap on returned URLs (default 500). meta.truncated reports whether any were dropped.