Skip to content

Overview

#Features

curl.md is intentionally small in surface area. The goal is simple: turn URLs into markdown that is easier for agents to use.

Tip

The following walks through curl.md’s features using the curl.md CLI. Install the CLI to follow along.

#Markdown Optimized For Agents

Fetch a webpage and get optimized markdown back instead of full HTML.

md example.com

curl.md uses a combination of site-specific rules and generalized extraction methods to make sure your agent only gets the best markdown.

#Objective-Based Narrowing

Use an objective when you need the output narrowed to a specific question or task.

md zod.dev/error-formatting --objective tree error formatting

Most of the time, your coding agent will set objectives for you based on your prompts. Agents tend to be very good at this.

When you need to control how that narrowing is applied, use mode to choose between a faster or more thorough pass.

#Keyword Pre-Filtering

Use keywords when you know the terms that matter and want to shrink the search space before the final output is generated.

md developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch \
  --objective "streaming response body" \
  --keywords ReadableStream,getReader

Keywords are a quick way to filter markdown before the objective-based narrowing takes a pass.

#Multiple Entry Points

There are multiple ways to use curl.md, making it simple to integrate into different agent workflows.