81trust / 100

Skill Link Preview

by Skill: Link preview card in News & content

x402 APIPassing, checked 1 h ago

The 'turn a URL into a card-shaped preview' workflow. Pull OpenGraph/Twitter card metadata, fetch the article body as a description fallback, normalize the og:image into a standard 1200×630 social card variant and a 400×400 square thumbnail, and extract URL/mention entities from the body for related-link surfacing. Five tools, one structured card payload ready for chat embeds, social shares, or RSS-to-card pipelines.

POST https://agent402.tools/api/skill/link-preview

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
191 ms typical, 194 ms slowest 5%
Last check
1 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/link-preview" \
  -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%2Flink-preview
const res = await pay("https://agent402.tools/api/skill/link-preview", {
  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": "link-preview",
  "steps": [
    {
      "ok": true,
      "result": {},
      "slug": "meta"
    },
    {
      "ok": true,
      "result": {},
      "slug": "extract"
    },
    {
      "ok": true,
      "result": {},
      "slug": "image-resize"
    },
    {
      "ok": true,
      "result": {},
      "slug": "image-thumbnail"
    },
    {
      "ok": true,
      "result": {},
      "slug": "extract-entities"
    }
  ],
  "summary": "5/5 steps succeeded"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402191 ms$0.015
4 h agoPassed402194 ms$0.015
7 h agoPassed402184 ms$0.015
12 h agoPassed402228 ms$0.015