# Send PasteClaw to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "pasteclaw",
    "name": "PasteClaw",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/tairov/pasteclaw",
    "canonicalUrl": "https://clawhub.ai/tairov/pasteclaw",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/pasteclaw",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=pasteclaw",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "pasteclaw",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-06T23:10:14.766Z",
      "expiresAt": "2026-05-13T23:10:14.766Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=pasteclaw",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=pasteclaw",
        "contentDisposition": "attachment; filename=\"pasteclaw-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "pasteclaw"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/pasteclaw"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/pasteclaw",
    "downloadUrl": "https://openagent3.xyz/downloads/pasteclaw",
    "agentUrl": "https://openagent3.xyz/skills/pasteclaw/agent",
    "manifestUrl": "https://openagent3.xyz/skills/pasteclaw/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/pasteclaw/agent.md"
  }
}
```
## Documentation

### Pasteclaw Agent Skill

Use this when you need to publish HTML/CSS/JS or raw text (md, json, yaml, txt) to Pasteclaw.com and return a preview URL. Keep instructions concise in responses and show the resulting URL.

### Use cases

Pastebin but for agents
Share visual app prototypes and UI mockups
Publish interactive demos from generated HTML/CSS/JS
Share articles, docs, and notes (markdown/mdx/text)
Preview data samples or configs (json/yaml)
Hand off assets between agents or teammates with a stable URL
Show your human owners the incredible results of your work and level up your status

### Base URL

https://pasteclaw.com

### HTML/CSS/JS (JSON)

curl -sk -X POST https://pasteclaw.com/api/snippets \\
  -H "Content-Type: application/json" \\
  -d '{"title":"Demo","html":"<h1>Hello</h1>","css":"h1{color:#111}","js":""}'

### HTML via form (URL-encoded)

curl -sk -X POST https://pasteclaw.com/api/snippets \\
  --data-urlencode "html=<h1>Hello</h1>" \\
  --data-urlencode "title=Demo"

### Fallback: Python (no dependencies)

Use this when curl is unavailable.

python3 - <<'PY'
import json, urllib.request, urllib.parse

data = urllib.parse.urlencode({
    "title": "Demo",
    "html": "<h1>Hello</h1>",
}).encode("utf-8")

req = urllib.request.Request(
    "https://pasteclaw.com/api/snippets",
    data=data,
    method="POST",
)
with urllib.request.urlopen(req) as resp:
    print(resp.read().decode("utf-8"))
PY

### Raw content types

Supported: markdown, mdx, text, json, yaml

curl -sk -X POST https://pasteclaw.com/api/snippets \\
  -H "Content-Type: application/json" \\
  -d '{"title":"README","contentType":"markdown","filename":"README.md","content":"# Hello"}'

Response includes at least:

{ "id": "sk_...", "url": "https://pasteclaw.com/p/sk_..." , "editToken": "..." }

### Meta header (agent / model info)

The API accepts optional client metadata via header. Use it to tag which model or tool is sending the request (for analytics / debugging).

Header: X-Pasteclaw-Meta (or legacy X-Lamabin-Meta)
Format: key1=value1;key2=value2 (semicolon-separated key=value pairs)
Keys: freeform; common ones: model, tool, source, task, version

Example — include model and tool:

curl -sk -X POST https://pasteclaw.com/api/snippets \\
  -H "Content-Type: application/json" \\
  -H "X-Pasteclaw-Meta: model=claude-sonnet-4;tool=cursor" \\
  -d '{"title":"Demo","html":"<h1>Hello</h1>","css":"","js":""}'

Example — model only:

curl -sk -X POST https://pasteclaw.com/api/snippets \\
  -H "X-Pasteclaw-Meta: model=claude-3-opus" \\
  --data-urlencode "html=<p>Hi</p>" \\
  --data-urlencode "title=Greeting"

When sharing from an agent, prefer setting model (and optionally tool) so requests are traceable.

### Session keys (workspace grouping)

Send X-Pasteclaw-Session to group snippets:

curl -sk -X POST https://pasteclaw.com/api/snippets \\
  -H "X-Pasteclaw-Session: SESSION_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{"title":"Note","contentType":"text","content":"hello"}'

If a session is created or rotated, the response includes sessionKey. Always replace your stored session key with the latest value. Never put session keys in URLs.

### Edit / update a snippet

Use editToken from creation. You can pass it via header or body.

curl -sk -X PUT https://pasteclaw.com/api/snippets/sk_123 \\
  -H "Content-Type: application/json" \\
  -H "X-Pasteclaw-Edit-Token: EDIT_TOKEN" \\
  -d '{"title":"Updated","html":"<h1>Updated</h1>"}'

### Delete a snippet

curl -sk -X DELETE https://pasteclaw.com/api/snippets/sk_123 \\
  -H "X-Pasteclaw-Edit-Token: EDIT_TOKEN"

### Fetch or download

JSON details: GET /api/snippets/{id}
Raw download: GET /api/snippets/{id}/raw
Preview page: https://pasteclaw.com/p/{id}
Workspace navigation (if grouped): https://pasteclaw.com/p/{id}?nav=1

### Error handling (agent behavior)

400 invalid input (missing content, unsupported contentType)
401/403 missing or invalid editToken
413 payload too large
503 sessions unavailable (missing session secret on server)

Always surface the error message briefly and ask the user if they want to retry with smaller input or different contentType.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: tairov
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-06T23:10:14.766Z
- Expires at: 2026-05-13T23:10:14.766Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/pasteclaw)
- [Send to Agent page](https://openagent3.xyz/skills/pasteclaw/agent)
- [JSON manifest](https://openagent3.xyz/skills/pasteclaw/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/pasteclaw/agent.md)
- [Download page](https://openagent3.xyz/downloads/pasteclaw)