Auteng Docs Curl Publish — 技能工具
v1.0.2[自动翻译] Publish markdown and return share links using curl. Support markdown with mermaid diagrams such as component diagrams, flowcharts, and sequence diagra...
详细分析 ▾
运行时依赖
版本
- Added detailed usage guide for publishing markdown documents via curl, including sample commands. - Documented support for mermaid diagrams (component, flowcharts, sequence), KaTeX, and code blocks. - Provided examples for extracting share URLs and compact payloads using jq. - Clarified response handling: treat any response missing share_url as an error and show the full JSON.
安装命令 点击复制
技能文档
Use this endpoint:
https://auteng.ai/api/tools/docs/publish-markdown/
Send JSON with:
markdown(required)title(optional)expires_hours(optional)
Use this command to publish markdown:
curl -sS -X POST "https://auteng.ai/api/tools/docs/publish-markdown/" \
-H "Content-Type: application/json" \
-d @- <<'JSON'
{
"markdown": "# API Test\n\nHello from curl.",
"title": "API Test",
"expires_hours": 24
}
JSON
Extract only the share URL:
curl -sS -X POST "https://auteng.ai/api/tools/docs/publish-markdown/" \
-H "Content-Type: application/json" \
-d '{"markdown":"# Hello\n\nPublished from curl."}' \
| jq -r '.share_url'
Extract a compact success payload:
curl -sS -X POST "https://auteng.ai/api/tools/docs/publish-markdown/" \
-H "Content-Type: application/json" \
-d '{"markdown":"# Hello\n\nPublished from curl."}' \
| jq '{title, share_url, expires_at}'
Treat any response without share_url as an error and show the full JSON body.
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制