81trust / 100
Skill Any To Markdown
by Skill: Convert anything to in Documents & files
x402 APIPassing, checked 2 h ago
Convert anything at a URL - HTML, PDF, or an image - to clean markdown. The 'I have a URL but it might be any content-type, give me markdown either way' workflow: HEAD-detect the content-type, branch to the right deterministic extractor (article extract for HTML, pdf-to-markdown for PDFs, OCR for images), and report token/word stats on the output so the caller can budget the result against an LLM context window.
POST https://agent402.tools/api/skill/any-to-markdown
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 202 ms typical, 387 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/skill/any-to-markdown" \
-H "content-type: application/json" \
-d '{"url":"https://agent402.tools"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fskill%2Fany-to-markdown
const res = await pay("https://agent402.tools/api/skill/any-to-markdown", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"url":"https://agent402.tools"}),
});
console.log(await res.json());Example input
{
"url": "https://agent402.tools"
}Example output
{
"args": {
"url": "https://agent402.tools"
},
"pack": "any-to-markdown",
"steps": [
{
"ok": true,
"result": {},
"slug": "http-headers"
},
{
"ok": true,
"result": {},
"slug": "extract"
},
{
"ok": true,
"result": {},
"slug": "pdf-to-markdown"
},
{
"ok": true,
"result": {},
"slug": "image-ocr"
},
{
"ok": true,
"result": {},
"slug": "html-to-markdown"
},
{
"ok": true,
"result": {},
"slug": "text-stats"
}
],
"summary": "6/6 steps succeeded"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 188 ms | $0.026 |
| 5 h ago | Passed | 402 | 193 ms | $0.026 |
| 9 h ago | Passed | 402 | 202 ms | $0.026 |
| 13 h ago | Passed | 402 | 346 ms | $0.026 |
| 16 h ago | Passed | 402 | 196 ms | $0.026 |
| 21 h ago | Passed | 402 | 216 ms | $0.026 |
| 24 h ago | Passed | 402 | 387 ms | $0.026 |
| 27 h ago | Passed | 402 | 188 ms | $0.026 |
| 32 h ago | Passed | 402 | 533 ms | $0.026 |