@zack/slack-post-message
Post or update Slack messages using a compact action surface for agent notifications.
Install
agentpm install @zack/slack-post-message@0.1.1Load
import { load } from '@agentpm/sdk';
const t = await load('@zack/slack-post-message@0.1.1');from agentpm import load
t = load("@zack/slack-post-message@0.1.1")Weekly downloads
1
0%
Last publish
1d ago
v0.1.1
agent.json
{
"name": "slack-post-message",
"version": "0.1.1",
"description": "Post or update Slack messages using a compact action surface for agent notifications.",
"files": [
"dist/"
],
"entrypoint": {
"args": [
"dist/index.js"
],
"command": "node",
"timeout_ms": 30000
},
"environment": {
"vars": {
"SLACK_BOT_TOKEN": {
"required": true,
"description": "Slack bot token used for message API requests."
},
"SLACK_API_BASE_URL": {
"default": "https://slack.com/api",
"required": false,
"description": "Optional Slack API base URL. Defaults to https://slack.com/api."
}
}
},
"inputs": {
"type": "object",
"required": [
"action",
"channel",
"text"
],
"properties": {
"ts": {
"type": "string",
"description": "Slack timestamp of the message to update."
},
"text": {
"type": "string",
"description": "Primary message text."
},
"action": {
"enum": [
"post_message",
"update_message"
],
"type": "string",
"description": "Slack message action to perform."
},
"blocks": {
"type": "array",
"items": {
"type": "object",
"description": "One Slack block object.",
"additionalProperties": true
},
"description": "Optional Slack block kit payload."
},
"channel": {
"type": "string",
"description": "Slack channel ID where the message will be posted or updated."
},
"thread_ts": {
"type": "string",
"description": "Optional Slack thread timestamp for posting a threaded reply."
}
},
"additionalProperties": false
},
"outputs": {
"oneOf": [
{
"type": "object",
"required": [
"ok",
"action",
"channel",
"ts",
"message",
"metadata"
],
"properties": {
"ok": {
"const": true,
"description": "True when the Slack API call succeeded."
},
"ts": {
"type": "string",
"description": "Slack timestamp of the created or updated message."
},
"action": {
"type": "string",
"description": "Action that was executed."
},
"channel": {
"type": "string",
"description": "Slack channel ID returned by Slack."
},
"message": {
"type": "object",
"description": "Normalized Slack message payload.",
"additionalProperties": true
},
"metadata": {
"type": "object",
"description": "Additional request metadata such as whether a thread was targeted.",
"additionalProperties": true
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"error"
],
"properties": {
"ok": {
"const": false,
"description": "False when validation or the Slack API call failed."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Stable machine-readable error code."
},
"details": {
"type": "object",
"description": "Optional structured context about the failure.",
"additionalProperties": true
},
"message": {
"type": "string",
"description": "Human-readable explanation of the failure."
}
},
"description": "Structured error returned by the tool.",
"additionalProperties": true
}
},
"additionalProperties": false
}
]
},
"readme": "README.md",
"license": {
"spdx": "MIT"
},
"runtime": {
"type": "node",
"version": "20"
}
}Environment variables
Required
SLACK_BOT_TOKENSlack bot token used for message API requests.
Optional
SLACK_API_BASE_URLOptional Slack API base URL. Defaults to https://slack.com/api.
https://slack.com/apiCompatibility
NodePython