slack-post-message
Post or update Slack messages using a compact action surface for agent notifications.
Why install it
Many useful agents need to report status or deliver results back to people. This tool gives agents a portable Slack notification primitive instead of custom Slack client code inside every app.
Inputs
action:post_messageorupdate_messagechannel: Slack channel IDtext: primary message textthread_ts: optional thread timestamp for repliests: message timestamp for update actionsblocks: optional Slack block kit payload
Outputs
action: executed action namechannel: Slack channel IDts: created or updated message timestampmessage: normalized Slack message payloadmetadata: request metadata such as whether a thread was targeted
Environment variables
SLACK_BOT_TOKEN: required bot tokenSLACK_API_BASE_URL: optional API base URL override
Local development
The source code for this tool can be found here
Test:
npm test
Build:
npm run build
Example invocation
printf '%s' '{"action":"post_message","channel":"C123456","text":"AgentPM Milestone 2 shipped"}' | node dist/index.js