← 返回
未分类 Key

Slack Extended

Upload files, manage canvases, and manage bookmarks in Slack. Use when you need to share files, create/edit canvases, or add/organize link bookmarks in Slack...
在 Slack 上传文件、管理画板和书签,适用于需要分享文件、创建/编辑画板或在 Slack 中整理链接书签的场景。
jilycn
未分类 clawhub v0.1.1 1 版本 99453.6 Key: 需要
★ 1
Stars
📥 162
下载
💾 0
安装
1
版本
#latest

概述

Slack Extended

Extends the core slack skill with file uploads and canvas management. Uses Python scripts that call the Slack API directly with the bot token from ~/.openclaw/openclaw.json.

Requires OAuth scopes: files:write, canvases:write (add at api.slack.com if missing).

File Upload

Upload a local file to a Slack channel:

python3 /mnt/openclaw/skills/slack-extended/scripts/slack_file_upload.py \
  --channel C123ABC \
  --file /path/to/file.png \
  --title "Q4 Report" \
  --message "Here's the latest report"

Arguments:

  • --channel (required): Channel ID to share the file in
  • --file (required): Path to the local file
  • --title: Display title (defaults to filename)
  • --message: Comment posted with the file

Returns JSON with file_id, permalink, and channel.

Common patterns:

  • Share a generated chart: --file /tmp/chart.png --title "Performance Chart"
  • Share a text file: --file ./notes.txt --title "Meeting Notes"
  • Share with context: --message "Backtest results for GEM v2" --file results.csv

Canvas Operations

Manage Slack canvases (collaborative documents):

Create a canvas

python3 /mnt/openclaw/skills/slack-extended/scripts/slack_canvas.py create \
  --title "Sprint Notes" \
  --markdown "## Goals\n- Ship feature X\n- Fix bug Y"

Edit a canvas

Append content:

python3 /mnt/openclaw/skills/slack-extended/scripts/slack_canvas.py edit \
  --canvas-id F07ABCD1234 \
  --operation insert_at_end \
  --markdown "## Update\nNew section added"

Replace a section:

python3 /mnt/openclaw/skills/slack-extended/scripts/slack_canvas.py edit \
  --canvas-id F07ABCD1234 \
  --section-id temp:C:abc123 \
  --operation replace \
  --markdown "## Revised Section\nUpdated content"

Operations: insert_at_start, insert_at_end, insert_after, replace, delete

Look up sections

python3 /mnt/openclaw/skills/slack-extended/scripts/slack_canvas.py sections \
  --canvas-id F07ABCD1234

Delete a canvas

python3 /mnt/openclaw/skills/slack-extended/scripts/slack_canvas.py delete \
  --canvas-id F07ABCD1234

Set access

python3 /mnt/openclaw/skills/slack-extended/scripts/slack_canvas.py access \
  --canvas-id F07ABCD1234 \
  --channel C123ABC \
  --level edit

Canvas Markdown

Canvases support: bold, italic, strikethrough, headings (h1-h3), bulleted/ordered lists, checklists, code blocks, code spans, links, tables (max 300 cells), blockquotes, dividers, emojis.

Mentions: ![](@USER_ID) for users, ![](#CHANNEL_ID) for channels.

Bookmarks

Manage link bookmarks in the bookmark bar at the top of Slack channels.

Limitation: Slack API only supports link bookmarks. Folders are a UI-only feature and cannot be created via the API.

Requires OAuth scopes: bookmarks:write, bookmarks:read

List bookmarks

python3 /mnt/openclaw/skills/slack-extended/scripts/slack_bookmark.py list \
  --channel C123ABC

Add a link bookmark

python3 /mnt/openclaw/skills/slack-extended/scripts/slack_bookmark.py add \
  --channel C123ABC \
  --title "Design Docs" \
  --link "https://example.com" \
  --emoji ":link:"

Edit a bookmark

python3 /mnt/openclaw/skills/slack-extended/scripts/slack_bookmark.py edit \
  --channel C123ABC \
  --bookmark-id Bk123 \
  --title "New Title"

Remove a bookmark

python3 /mnt/openclaw/skills/slack-extended/scripts/slack_bookmark.py remove \
  --channel C123ABC \
  --bookmark-id Bk123

Troubleshooting

  • missing_scope error: Add the required scope (files:write or canvases:write) at api.slack.com, then reinstall the app to the workspace.
  • channel_not_found: Use the channel ID (e.g. C07ABC123), not the channel name.
  • not_authed: Bot token may have changed. Check ~/.openclaw/openclaw.json.
  • Canvas edit fails: Look up sections first to get valid section_id values.
  • missing_scope for bookmarks: Add bookmarks:write and bookmarks:read at api.slack.com, then reinstall.
  • Folders not supported: Slack API does not support creating folders — only link bookmarks. Folders can only be created manually in the Slack UI.

版本历史

共 1 个版本

  • v0.1.1 当前
    2026-05-12 05:51 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,065 📥 802,329
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,219 📥 267,060
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,364 📥 319,302