← Back to Skills Marketplace
zyli5313

Publish to dochost

by Jake Li · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
37
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install dochost-publish
Description
Publish Markdown or HTML to a clean, shareable dochost.io link and hand the URL back to the user. Use when the user says "publish this", "share this as a lin...
README (SKILL.md)

Publish to dochost

Turn Markdown or HTML into a hosted web page at its own URL, in one call. The page renders live (Markdown and HTML), so the recipient sees a real page, not a raw .md blob. Free links last 7 days; permanent links, passwords, custom slugs and branding removal follow the account's plan.

One-time setup

The agent publishes as a dochost user, authenticated with an API key.

  1. Sign in at \x3Chttps://dochost.io>, open Settings → API keys, create a key.
  2. Make it available to the agent as the environment variable DOCHOST_API_KEY.

That's the whole setup. Entitlements (link lifetime, password, custom slug, branding) come from the account that owns the key, never from tool input.

How to publish

Send one JSON-RPC tools/call to the dochost MCP endpoint with the key as a Bearer token. No handshake or initialize call is needed (the server is stateless).

curl -sS -X POST https://dochost.io/api/mcp \
  -H "Authorization: Bearer $DOCHOST_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "publish",
      "arguments": {
        "body": "# My report\
\
Hello world.",
        "format": "markdown"
      }
    }
  }'

Reading the result

The response is JSON-RPC. The tool payload is a JSON string inside result.content[0].text. Parse it and read url:

# ...pipe the curl output through jq:
| jq -r '.result.content[0].text | fromjson | .url'

A success payload looks like:

{ "ok": true, "slug": "q3-report", "url": "https://dochost.io/d/q3-report",
  "editToken": "…", "expiresAt": "2026-06-22T12:00:00.000Z" }

Give the user the url. Mention expiresAt if it is set (free links expire; null means permanent). Keep editToken only if the user may want to edit later.

publish arguments

Argument Type Notes
body string (required) The Markdown or HTML to publish.
format "markdown" | "html" Auto-detected when omitted. Set it if the content is ambiguous.
public boolean List on dochost Explore. Default false (unlisted).
customSlug string · paid Choose the link path instead of a random slug.
password string · paid Gate the page behind a password.
noBranding boolean · paid Hide the dochost footer badge.

List previously published pages

curl -sS -X POST https://dochost.io/api/mcp \
  -H "Authorization: Bearer $DOCHOST_API_KEY" \
  -H "Content-Type: application/json" -H "Accept: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
       "params":{"name":"list_my_pages","arguments":{"limit":10}}}'

Returns compact records (slug, url, title, createdAt, expiresAt) — never page bodies.

Errors the user should hear about

The payload has ok: false and a plain-English message on failure. Common cases:

  • RATE_LIMITED — too many publishes; the message says how long to wait.
  • Quota / size limits — free plan caps page count and document size; the message tells the user to delete a page or upgrade.
  • Blocked URL — the content contained an unsafe link and was not published.
  • Invalid / taken customSlug — pick a different slug (lowercase, numbers, hyphens).

Relay the message verbatim; it is written for end users.

Notes

  • Never put secrets, tokens, or private keys in body — published pages are public URLs (a password only gates the rendered page, not the fact a URL exists).
  • Anonymous publishing is disabled by design; a valid key is required.
  • Native MCP clients can instead add the server as a tool — see the repo's clients/ guides. This skill uses plain HTTP so it works even where MCP isn't wired.
Usage Guidance
Install only if you are comfortable giving the agent a dochost API key and having selected Markdown or HTML sent to dochost.io as a public or unlisted web page. Review and redact sensitive content before asking the agent to publish.
Capability Tags
requires-oauth-tokenrequires-sensitive-credentials
Capability Assessment
Purpose & Capability
The capability is coherent with the stated purpose: sending document content to dochost.io and returning a hosted public URL.
Instruction Scope
Trigger phrases are broad, but they are publishing-oriented and the artifact repeatedly describes public links; users should still confirm the exact content before publishing.
Install Mechanism
There are no executable install scripts; setup only asks the user to create a dochost API key and expose it as DOCHOST_API_KEY.
Credentials
Network access to dochost.io and use of a bearer API key are proportionate for an authenticated publishing workflow.
Persistence & Privilege
The service creates hosted pages that may last 7 days or permanently depending on the account plan, and may return an edit token; this is disclosed and purpose-aligned.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install dochost-publish
  3. After installation, invoke the skill by name or use /dochost-publish
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Publish Markdown or HTML to a dochost.io link
Metadata
Slug dochost-publish
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Publish to dochost?

Publish Markdown or HTML to a clean, shareable dochost.io link and hand the URL back to the user. Use when the user says "publish this", "share this as a lin... It is an AI Agent Skill for Claude Code / OpenClaw, with 37 downloads so far.

How do I install Publish to dochost?

Run "/install dochost-publish" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Publish to dochost free?

Yes, Publish to dochost is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Publish to dochost support?

Publish to dochost is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Publish to dochost?

It is built and maintained by Jake Li (@zyli5313); the current version is v1.0.0.

💬 Comments