@zack/slack-post-message

Post or update Slack messages using a compact action surface for agent notifications.

Z
@zack
Publication time unavailable25 installs · all versions

Get started

Install, run, or load this Tool.

Run directly with the CLI or call from an SDK

01Install

Resolve this exact Tool version and its prepared dependencies.

agentpm install @zack/slack-post-message@0.1.2

02Run Tool

Send JSON to its declared input contract and receive JSON output.

agentpm run @zack/slack-post-message@0.1.2 --input '{"action":"post_message","channel":"Slack channel ID where the message will be posted or updated.","text":"Primary message text."}'

Schema-derived starter input. Replace sample values with your own before running.

This Tool declares required environment variables. Review requirements in Runtime & execution before running it.

ORLoad via SDK

Call the installed Tool through an SDK.

import { load } from '@agentpm/sdk';
const t = await load('@zack/slack-post-message@0.1.2');
CLI version & updates

CLI 0.1.36+ reads and preserves standard declarations. New publications require an explicit supported standard; use the latest CLI for current authoring checks. Historical releases remain installable as published. This floor does not establish selected-release installation support or Harness readiness.

Check agentpm --version, then follow the CLI installation and update guide. See the publication compatibility requirements.

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_message or update_message
  • channel: Slack channel ID
  • text: primary message text
  • thread_ts: optional thread timestamp for replies
  • ts: message timestamp for update actions
  • blocks: optional Slack block kit payload

Outputs

  • action: executed action name
  • channel: Slack channel ID
  • ts: created or updated message timestamp
  • message: normalized Slack message payload
  • metadata: request metadata such as whether a thread was targeted

Environment variables

  • SLACK_BOT_TOKEN: required bot token
  • SLACK_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":"The release is available"}' | node dist/index.js