# Send Snapmaker 2 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": "snapmaker-2",
    "name": "Snapmaker 2",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/odrobnik/snapmaker-2",
    "canonicalUrl": "https://clawhub.ai/odrobnik/snapmaker-2",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/snapmaker-2",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=snapmaker-2",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/API_NOTES.md",
      "scripts/monitor.py",
      "scripts/snapmaker.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "snapmaker-2",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-09T04:50:07.491Z",
      "expiresAt": "2026-05-16T04:50:07.491Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=snapmaker-2",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=snapmaker-2",
        "contentDisposition": "attachment; filename=\"snapmaker-2-1.2.2.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "snapmaker-2"
      },
      "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/snapmaker-2"
    },
    "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/snapmaker-2",
    "downloadUrl": "https://openagent3.xyz/downloads/snapmaker-2",
    "agentUrl": "https://openagent3.xyz/skills/snapmaker-2/agent",
    "manifestUrl": "https://openagent3.xyz/skills/snapmaker-2/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/snapmaker-2/agent.md"
  }
}
```
## Documentation

### Snapmaker 2.0 Skill

Control and monitor Snapmaker 2.0 3D printers via their HTTP API.

### Features

Status monitoring - Real-time printer status (temperatures, progress, position)
Job management - Send, start, pause, resume, and stop print jobs
Safety features - Prevents interfering with active prints without confirmation
Progress watching - Live monitoring of print progress
Notification support - Detect print completion, filament issues, errors

### Configuration

Create config.json in your workspace's snapmaker/ folder (e.g. ~/clawd/snapmaker/config.json).
Start from config.json.example.

Config format:

{
  "ip": "192.168.0.32",
  "token": "your-token-here",
  "port": 8080
}

Finding your token:
Open the Snapmaker Luban app, connect to your printer, and find the token
in the connection settings. Copy it into your config.json.

### Discovery

# Find Snapmaker printers on the local network (UDP broadcast, port 20054)
python3 scripts/snapmaker.py discover

# Probe a specific IP (useful across subnets)
python3 scripts/snapmaker.py discover --target 192.168.0.32

# JSON output
python3 scripts/snapmaker.py discover --json

Discovery uses the Snapmaker UDP broadcast protocol (no auth required).
Falls back to HTTP probe using config if UDP gets no reply (e.g. different subnet).

### Basic Commands

# Get current printer status
python3 scripts/snapmaker.py status

# Watch print progress (updates every 5 seconds)
python3 scripts/snapmaker.py watch

# Get status as JSON
python3 scripts/snapmaker.py status --json

### Job Control

# Send a file (prepares but doesn't start)
python3 scripts/snapmaker.py send ~/prints/model.gcode

# Send and start immediately
python3 scripts/snapmaker.py send ~/prints/model.gcode --start --yes

# Pause current print
python3 scripts/snapmaker.py pause --yes

# Resume paused print
python3 scripts/snapmaker.py resume --yes

# Stop/cancel print (requires confirmation)
python3 scripts/snapmaker.py stop

### Safety Flags

--yes - Skip confirmation prompts (use with caution!)
--force - Override safety checks (NOT RECOMMENDED)

All commands that modify state require confirmation unless --yes is provided.

### API Endpoints

The skill uses these Snapmaker HTTP API v1 endpoints:

POST /api/v1/connect - Establish connection
GET /api/v1/status - Get printer status
POST /api/v1/prepare_print - Upload file
POST /api/v1/start_print - Start printing
POST /api/v1/pause - Pause print
POST /api/v1/resume - Resume print
POST /api/v1/stop - Stop/cancel print
GET /api/v1/print_file - Download last file

### Status Fields

The status command returns:

status - Overall state (IDLE, RUNNING, PAUSED)
printStatus - Printing / Idle
progress - 0.0 to 1.0
fileName - Current/last file
currentLine / totalLines - G-code progress
elapsedTime / remainingTime - In seconds
nozzleTemperature1 / nozzleTargetTemperature1
heatedBedTemperature / heatedBedTargetTemperature
x / y / z - Current position
isFilamentOut - Filament runout detection
isEnclosureDoorOpen - Door state

### Notifications

To detect events:

# Watch for completion
python3 scripts/snapmaker.py watch

# Or poll status in a loop
while true; do
  python3 scripts/snapmaker.py status --json | jq -r '.printStatus'
  sleep 10
done

Event detection:

Print complete - status == "IDLE" && progress >= 0.99
Filament out - isFilamentOut == true
Door opened - isEnclosureDoorOpen == true
Error - Check status field for errors

### Safety Features

Active print protection - Cannot send files while printing
Confirmation prompts - All destructive actions require confirmation
State validation - Commands check printer state before executing
Clear warnings - Stop command shows prominent warning

### Check if printer is busy

python3 scripts/snapmaker.py status | grep -q "RUNNING" && echo "Busy" || echo "Available"

### Get remaining time

python3 scripts/snapmaker.py status --json | jq -r '.remainingTime'

### Monitor temperatures

python3 scripts/snapmaker.py status --json | jq '{nozzle: .nozzleTemperature1, bed: .heatedBedTemperature}'

### Troubleshooting

"Machine is not connected yet" (401 error):

The API requires calling /api/v1/connect first before any status queries
Example: curl -X POST "http://192.168.0.32:8080/api/v1/connect?token=YOUR_TOKEN"
The Python script handles this automatically on first request
Connection establishes a session that persists until the printer is powered off
If using raw curl commands, always call connect first

Connection refused:

Verify printer IP: ping 192.168.0.32
Check printer is powered on
Ensure you're on the same network

Invalid token:

Reconnect Luban to the printer (accept on touchscreen)
Copy the new token from Luban's connection settings
Update your config.json

Can't send file:

Check if printer is busy: python3 scripts/snapmaker.py status
Wait for current print to finish
Use --force only if absolutely necessary

### References

Snapmaker Forum: Auto-start Guide
Snapmaker Forum: API Documentation

### Dependencies

Python 3.6+
requests library (install: pip3 install requests)

### License

Part of OpenClaw skills collection.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: odrobnik
- Version: 1.2.2
## 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-09T04:50:07.491Z
- Expires at: 2026-05-16T04:50:07.491Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/snapmaker-2)
- [Send to Agent page](https://openagent3.xyz/skills/snapmaker-2/agent)
- [JSON manifest](https://openagent3.xyz/skills/snapmaker-2/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/snapmaker-2/agent.md)
- [Download page](https://openagent3.xyz/downloads/snapmaker-2)