Skip to content
Back to skills

Fetch Text

ASecurity

Fetch the text content of a web page or PDF from a URL. Handles HTML, PDF, Markdown, plain text — auto-detects format.

  • 10 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 6, 2026
documentationgophp

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned June 6, 2026

npx -y skills add bdambrosio/Cognitive_workbench --skill fetch-text --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fetch Text?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fetch Text
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bdambrosio-fetch-text/badge)](https://www.skillsdirectory.com/skills/bdambrosio-fetch-text)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fetch-text
description: Fetch the text content of a web page or PDF from a URL. Handles HTML, PDF, Markdown, plain text — auto-detects format.
args:
  url: required string — the URL or base64-encoded PDF to fetch
---

# fetch-text

Retrieve and extract the full text of a URL. Auto-detects the format (HTML / PDF / Markdown / plain text) and returns the extracted text.

## Behavior

- HTML: structured text with links and image references preserved.
- PDF: text extraction page by page.
- Markdown / plain: returned as-is.
- Page candidate images (Open Graph, Twitter cards, in-page `<img>` tags) are surfaced as part of the result so a downstream `display` can pick a primary image without re-fetching.

## When to use vs search-web

- `fetch-text` — you already have a specific URL and want the complete content.
- `search-web` — you're looking for information and don't yet have the URL.

## Examples

```json
{"thought": "read the paper from the URL", "tool": "fetch-text", "url": "https://arxiv.org/pdf/1706.03762.pdf"}
```

```json
{"thought": "load today's weather forecast page", "tool": "fetch-text", "url": "https://forecast.weather.gov/MapClick.php?lat=37.87&lon=-122.27"}
```

Files in this skill

  • Skill.md1.2 KB
  • tool.py28.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…