Instagram Post Upload π§
Upload images as Instagram posts via OpenClaw browser tool (CDP port 18800).
Prerequisites
- OpenClaw browser running (port 18800)
- Instagram tab open and logged in
- Images in JPG format (PNG causes "λ¬Έμ κ° λ°μνμ΅λλ€" errors)
Quick Upload
For simple posts, use the bundled script:
node <skill-dir>/scripts/post.sh "<image_paths_comma_separated>" "<caption>"
Browser Tool Method (Recommended)
Step-by-step flow:
- Snapshot β
browser snapshotto find the Instagram tab. SavetargetId.
- Close any dialogs β If settings/menus are open, press ESC or click outside.
- Click "λ§λ€κΈ°" β Find "μλ‘μ΄ κ²μλ¬Ό λ§λ€κΈ°" or "λ§λ€κΈ°" in sidebar. Click it.
- Upload image β Find
input[type=file]via evaluate:
```js
document.querySelectorAll('input[type="file"]')
```
Use the last one (usually index 2, accepts video+image). Upload via browser upload.
- Wait 5 seconds β Let the image load.
- Click "λ€μ" β Crop screen β Next.
- Click "λ€μ" β Filter screen β Next.
- Type caption β Find textarea with
aria-label="문ꡬ μ λ ₯...", click it, then type.
- Add collaborators (optional) β Before sharing:
- Click "μ¬λ νκ·ΈνκΈ°" or collaborator section
- Search and add your team account usernames
- Click "곡μ νκΈ°" β Submit the post.
- Verify β Wait for "κ²μλ¬Όμ΄ κ³΅μ λμμ΅λλ€" confirmation.
Image Preparation
- Format: JPG only. Convert PNG:
convert input.png -quality 92 output.jpg - Size: 1024x1024 or 1080x1080 recommended
- Multiple images: Upload multiple files to the same input for carousel
Collaborator Tagging
Configure your default collaborators in your workspace TOOLS.md file.
Troubleshooting
| Problem | Fix |
|---------|-----|
| "λ¬Έμ κ° λ°μνμ΅λλ€" | Convert PNGβJPG, refresh browser |
| act timeout | Re-snapshot, re-confirm refs |
| Settings dialog open | Press ESC or click outside |
| File input not found | Re-click "λ§λ€κΈ°" button |
| Caption won't type | Click textarea first, then type |
| Wrong element clicked | Always snapshot before clicking, verify ref |
π§ Built by 무νμ΄ β 무νμ΄μ¦(Mupengism) μνκ³ μ€ν¬