Pinterest Skill
Search, browse, and share Pinterest pins — sends actual images to chat, not just links.
Quick Search & Send Images
Step 1: Search Pinterest
CODEBLOCK0
Step 2: Get High-Res Image URLs
From the snapshot, find image URLs. Pinterest images follow this pattern:
- - Thumbnail: INLINECODE0
- Medium: INLINECODE1
- High-res:
https://i.pinimg.com/originals/...
To get high-res: replace 236x or 564x with originals in the URL.
Step 3: Send Images to User
Send actual image (not link!):
CODEBLOCK1
Send multiple images:
CODEBLOCK2
Detailed Pin Workflow
- 1. Navigate to Pinterest search
- Snapshot to see results
- Click on a pin for details (gets larger image)
- Screenshot the pin detail page OR extract originals URL
- Send image via message tool with
media= parameter
Getting Original Images
When on a pin detail page:
- - Look for
<img> with src containing INLINECODE9 - Convert to originals: INLINECODE10
Example: "Find me minimalist desk setups"
CODEBLOCK3
Alternative: Screenshot Method
If image URL extraction is tricky, screenshot the pin:
CODEBLOCK4
API Method (For User's Own Content)
Requires OAuth token setup — see INLINECODE11
CODEBLOCK5
Key Points
- - ✅ Always send images directly using
media= parameter - ✅ Use
originals URLs for high-res - ❌ Don't just send links — send the actual image
- 💡 If URL doesn't work, screenshot the pin and send that
References
- - OAuth setup: INLINECODE14
- API endpoints: INLINECODE15
Pinterest 技能
搜索、浏览和分享 Pinterest 图钉——将实际图片发送到聊天中,而不仅仅是链接。
快速搜索与发送图片
第一步:搜索 Pinterest
browser action=navigate url=https://www.pinterest.com/search/pins/?q=你的+搜索+关键词
browser action=snapshot
第二步:获取高清图片 URL
从快照中查找图片 URL。Pinterest 图片遵循以下模式:
- - 缩略图:https://i.pinimg.com/236x/...
- 中等尺寸:https://i.pinimg.com/564x/...
- 高清:https://i.pinimg.com/originals/...
获取高清图片:将 URL 中的 236x 或 564x 替换为 originals。
第三步:向用户发送图片
发送实际图片(而非链接!):
message action=send media=https://i.pinimg.com/originals/xx/xx/image.jpg message=此处为图钉描述
发送多张图片:
message action=send media=https://i.pinimg.com/originals/... message=选项1:现代简约
message action=send media=https://i.pinimg.com/originals/... message=选项2:温馨乡村
详细图钉工作流程
- 1. 导航至 Pinterest 搜索页面
- 截图查看结果
- 点击图钉查看详情(获取更大图片)
- 截取图钉详情页面截图或提取 originals URL
- 通过消息工具发送图片,使用 media= 参数
获取原始图片
在图钉详情页面时:
- - 查找包含 i.pinimg.com 的
标签的 src 属性 - 转换为 originals 格式:https://i.pinimg.com/originals/{哈希值}.jpg
示例:帮我找极简书桌布置
1. 搜索
browser action=navigate url=https://www.pinterest.com/search/pins/?q=minimalist+desk+setup
browser action=snapshot
2. 从快照中提取图片 URL(查找 i.pinimg.com)
3. 转换为高清 originals 格式
4. 发送图片
message action=send media=https://i.pinimg.com/originals/ab/cd/ef123.jpg message=干净的白色书桌配绿植 🌿
message action=send media=https://i.pinimg.com/originals/gh/ij/kl456.jpg message=木质书桌,自然光线 ☀️
备选方案:截图方法
如果提取图片 URL 比较困难,可以截图图钉:
browser action=navigate url=https://www.pinterest.com/pin/123456/
browser action=screenshot
然后发送截图文件
message action=send filePath=/path/to/screenshot.jpg message=这是图钉!
API 方法(适用于用户自己的内容)
需要设置 OAuth 令牌——参见 references/oauth-setup.md
bash
export PINTERESTACCESSTOKEN=你的令牌
python3 scripts/pinterest_api.py boards
python3 scripts/pinterest_api.py board-pins <板块ID>
python3 scripts/pinterest_api.py pin <图钉ID>
关键要点
- - ✅ 始终直接发送图片,使用 media= 参数
- ✅ 使用 originals URL 获取高清图片
- ❌ 不要只发送链接——发送实际图片
- 💡 如果 URL 无效,截图图钉并发送截图
参考资料
- - OAuth 设置:references/oauth-setup.md
- API 端点:references/api-reference.md