81trust / 100

Skill Media Pipeline

by Skill: Uploaded-media normalize in Documents & files

x402 APIPassing, checked 45 min ago

The 'user uploaded a thing, normalize it before storing' workflow. Probe the file (image or audio/video) with media-info, decode any embedded barcodes/QRs, resize and thumbnail the image, convert it to a web-friendly format, and normalize audio loudness to broadcast standard. Six tools, one canonical normalize-on-upload pipeline that turns arbitrary user uploads into predictable storage artifacts.

POST https://agent402.tools/api/skill/media-pipeline

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
181 ms typical, 181 ms slowest 5%
Last check
45 min 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/media-pipeline" \
  -H "content-type: application/json" \
  -d '{"uploadPath":"https://agent402.tools/fixtures/sample-image.png"}'
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%2Fmedia-pipeline
const res = await pay("https://agent402.tools/api/skill/media-pipeline", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"uploadPath":"https://agent402.tools/fixtures/sample-image.png"}),
});
console.log(await res.json());

Example input

{
  "uploadPath": "https://agent402.tools/fixtures/sample-image.png"
}

Example output

{
  "args": {
    "uploadPath": "https://agent402.tools/fixtures/sample-image.png"
  },
  "pack": "media-pipeline",
  "steps": [
    {
      "ok": true,
      "result": {},
      "slug": "media-info"
    },
    {
      "ok": true,
      "result": {},
      "slug": "barcode-decode"
    },
    {
      "ok": true,
      "result": {},
      "slug": "image-resize"
    },
    {
      "ok": true,
      "result": {},
      "slug": "image-thumbnail"
    },
    {
      "ok": true,
      "result": {},
      "slug": "image-convert"
    },
    {
      "ok": true,
      "result": {},
      "slug": "audio-normalize"
    }
  ],
  "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

WhenResultHTTPTimePrice
45 min agoPassed402188 ms$0.03
6 h agoPassed402181 ms$0.03