---
name: utilsforagents.com
description: utilsforagents.com provides two utility skills for converting web content into Markdown: one fetches a public URL and returns its content as Markdown, and the other converts a raw HTML string directly to Markdown. Both skills return character count metadata and processing time alongside the converted text.
host: utilsforagents.com
---

# utilsforagents.com

utilsforagents.com is a lightweight utility host aimed at agents that need to ingest web content in a clean, LLM-friendly format. It handles the two most common entry points for HTML-to-Markdown conversion: fetching a live URL and transforming an already-retrieved HTML string. It does not provide crawling, authentication, JavaScript rendering, or any format conversions beyond HTML/web-to-Markdown.

## When to use this host

Use this host when an agent needs to read or store the text content of a public webpage or a raw HTML string in Markdown format — particularly before feeding content to an LLM, summarizing a page, or storing scraped data. Choose fetch-webpage-as-markdown when you have a URL; choose convert-html-to-markdown when you already have the HTML string. Do not use this host for pages requiring authentication, JavaScript rendering, or intranet access. Do not use it to convert PDFs, DOCX files, or plain text — use format-specific converters for those. This host has no search, crawling, or multi-page capabilities; for broader web research workflows, pair it with a search or crawl host that can supply URLs or HTML at scale.

## Capabilities

### HTML and Web Content to Markdown

Converts web content into clean Markdown text, either by fetching a public URL directly or by processing a raw HTML string already in hand. Both skills preserve document structure including headings, links, tables, lists, code, and blockquotes.

- **`fetch-webpage-as-markdown`** — Fetches a public HTTP/HTTPS URL, extracts its HTML, and returns the page content converted to Markdown along with character count metadata.
- **`convert-html-to-markdown`** — Converts an HTML string to clean Markdown text, preserving headings, links, tables, lists, inline code, and blockquotes.

## Workflows

### Fetch and Re-process Webpage Content

*Use when an agent needs to fetch a public webpage and then apply additional HTML transformation logic — for example, when the agent has already retrieved partial HTML separately and needs consistent Markdown output across both sources in the same pipeline.*

1. **`fetch-webpage-as-markdown`** — Fetch the target public URL and receive its content as Markdown along with the source HTML metadata.
2. **`convert-html-to-markdown`** — If the agent also holds raw HTML fragments from the same or related pages, convert those independently to Markdown for consistent formatting before combining with the fetched content.

## Skill reference

### `fetch-webpage-as-markdown`

**Markdown Fetcher** — Fetches a public HTTP/HTTPS URL, extracts its HTML, and returns the page content converted to Markdown along with character count metadata.

*Use when:* Use when an agent needs to read the text content of a public webpage in a structured, LLM-friendly format rather than raw HTML — for example, to summarize, extract facts, or analyze a page.

*Not for:* Do not use for private, authenticated, or intranet URLs; only public http/https URLs are supported. Not suitable for downloading binary files or scraping pages that require JavaScript rendering.

**Inputs:**

- `url` (string, required) — Fully-qualified public HTTP or HTTPS URL of the webpage to fetch and convert. SSRF-blocked targets, non-2xx upstream responses, and timeouts return error responses.

**Returns:** Returns ok=true with the page rendered as Markdown, the source URL, processing time in ms, and character counts before and after conversion.

**Example:** `{"url": "https://example.com/"}`

---

### `convert-html-to-markdown`

**HTML to Markdown** — Converts an HTML string to clean Markdown text, preserving headings, links, tables, lists, inline code, and blockquotes.

*Use when:* Use when an agent needs to transform raw HTML content into readable, reusable Markdown — for example, before storing scraped web content, feeding it to an LLM, or rendering it in a Markdown-aware interface.

*Not for:* Do not use for converting non-HTML formats (e.g., PDF, DOCX, or plain text) to Markdown; use a format-specific converter instead. Not suitable for streaming or real-time HTML-to-Markdown pipelines — this is a single-shot conversion.

**Inputs:**

- `html` (string, required) — HTML string to convert. Accepts a full HTML document or a fragment. Empty strings are rejected with a 400 error.

**Returns:** Returns ok=true with the converted Markdown string, character counts before and after conversion, and processing time in milliseconds.

**Example:** `{"html": "<h1>Welcome</h1><p>This is a <strong>sample</strong> page with a <a href=\"https://example.com/docs?ref=abc\">documentation link</a>.</p>"}`

---
