71trust / 100

Markdown Heading Outline Execute

by tradepilotusa.com in Search & web

x402 APIPassing, checked 2 h ago

Extract ATX headings with levels and source line numbers from Markdown, excluding fenced code blocks. Leaves inline Markdown in titles unchanged. Setext and container-nested headings are outside the supported subset.

POST https://www.tradepilotusa.com/api/agent-commerce/v1/services/markdown_heading_outline/execute

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
830 ms typical, 1.2 s slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://www.tradepilotusa.com/api/agent-commerce/v1/services/markdown_heading_outline/execute' \
  -H 'content-type: application/json' \
  --data-raw '{"markdown":"# Overview\n\n## Delivery\n```\n# Not a heading\n```"}'
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%2Fwww.tradepilotusa.com%2Fapi%2Fagent-commerce%2Fv1%2Fservices%2Fmarkdown_heading_outline%2Fexecute
const res = await pay("https://www.tradepilotusa.com/api/agent-commerce/v1/services/markdown_heading_outline/execute", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"markdown\":\"# Overview\\n\\n## Delivery\\n```\\n# Not a heading\\n```\"}",
});
console.log(await res.json());

Example input

{
  "markdown": "# Overview\n\n## Delivery\n```\n# Not a heading\n```"
}

Example output

{
  "provenance": {
    "execution": "deterministic_local",
    "model_used": false,
    "network_request_performed": false
  },
  "request_id": "example_markdown_heading_outline",
  "result": {
    "heading_count": 2,
    "headings": [
      {
        "level": 1,
        "line": 1,
        "title": "Overview"
      },
      {
        "level": 2,
        "line": 3,
        "title": "Delivery"
      }
    ],
    "syntax": "ATX headings outside fenced code; inline Markdown preserved; Setext headings excluded"
  },
  "utility": "markdown_heading_outline"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402639 ms$0.01
6 h agoPassed402708 ms$0.01
9 h agoPassed402815 ms$0.01
13 h agoPassed4021.1 s$0.01
17 h agoPassed4021.0 s$0.01
21 h agoPassed402686 ms$0.01
24 h agoPassed402727 ms$0.01
28 h agoPassed402684 ms$0.01
32 h agoPassed4021.2 s$0.01
35 h agoPassed402930 ms$0.01
39 h agoPassed4021.1 s$0.01
42 h agoPassed402723 ms$0.01
46 h agoPassed4021.0 s$0.01
2 days agoPassed402926 ms$0.01
2 days agoPassed4021.9 s$0.01