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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 639 ms | $0.01 |
| 6 h ago | Passed | 402 | 708 ms | $0.01 |
| 9 h ago | Passed | 402 | 815 ms | $0.01 |
| 13 h ago | Passed | 402 | 1.1 s | $0.01 |
| 17 h ago | Passed | 402 | 1.0 s | $0.01 |
| 21 h ago | Passed | 402 | 686 ms | $0.01 |
| 24 h ago | Passed | 402 | 727 ms | $0.01 |
| 28 h ago | Passed | 402 | 684 ms | $0.01 |
| 32 h ago | Passed | 402 | 1.2 s | $0.01 |
| 35 h ago | Passed | 402 | 930 ms | $0.01 |
| 39 h ago | Passed | 402 | 1.1 s | $0.01 |
| 42 h ago | Passed | 402 | 723 ms | $0.01 |
| 46 h ago | Passed | 402 | 1.0 s | $0.01 |
| 2 days ago | Passed | 402 | 926 ms | $0.01 |
| 2 days ago | Passed | 402 | 1.9 s | $0.01 |