name: slack-multi-files
Clawdbot's Slack integration only delivers the first file attachment per message (see issue #4282). This skill retrieves all attachments.
Automatically when you receive a Slack message that includes an image or file attachment. The check is lightweight — if there's only 1 file, it returns quickly.
~/.openclaw/skills/slack-multi-files/scripts/fetch-slack-files.sh <channel_id> <message_ts>
Returns JSON array of all downloaded files with paths. Use image tool to analyze each.
curl -s -H "Authorization: Bearer $SLACK_BOT_TOKEN" \
"https://slack.com/api/conversations.replies?channel=CHANNEL&ts=TS&limit=1&inclusive=true" \
| jq '.messages[0].files[] | {name, url_private, mimetype}'
Then download each url_private with the same auth header.
channel_id: Slack channel ID (e.g. C08KHA4BQHW)message_ts: Message timestamp (e.g. 1769734297.476489)~/.openclaw/openclaw.jsonimage tool to analyze image files~/.openclaw/openclaw.json のパスやキー名が変わるとトークン取得に失敗する。スクリプトがエラーを返したら、まずJSONファイルの channels.slack.botToken の存在を確認する1769734297.476489 のようにドット区切り。URLエンコードや文字列切り詰めで壊れやすいので、元の値をそのまま渡すこと